USB Host Library for Sprint Dongles

Dependencies:   Socket USBHostWANDongleSprint lwip-sys lwip

Dependents:   SprintUSBModemWebsocketTest SprintUSBModemHTTPClientTest SprintUSBModemNTPClientTest SprintUSBModemSMSTest ... more

Fork of SprintUSBModem_bleedingedge by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
donatien
Date:
Thu Sep 27 09:00:34 2012 +0000
Parent:
2:f4d9c4ea17f9
Child:
4:23100b0757d6
Commit message:
Working rev. using one serial port

Changed in this revision

SprintUSBModem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SprintUSBModem.cpp	Wed Sep 26 07:08:18 2012 +0000
+++ b/SprintUSBModem.cpp	Thu Sep 27 09:00:34 2012 +0000
@@ -26,11 +26,11 @@
 
 #include "SprintUSBModem.h"
 
-//#define USE_ONE_PORT 1
+#define USE_ONE_PORT 1
 
 SprintUSBModem::SprintUSBModem(PinName powerGatingPin /*= NC*/, bool powerGatingOnWhenPinHigh /* = true*/) : m_dongle(),
 m_atStream(m_dongle.getSerial(1)), m_pppStream(m_dongle.getSerial(0)), m_at(&m_atStream),
-m_sms(&m_at), m_ppp(&m_pppStream), 
+m_sms(&m_at), m_ppp(&m_atStream), //FIXME
 m_dongleConnected(false), m_ipInit(false), m_smsInit(false), m_atOpen(false),
 m_powerGatingPin(powerGatingPin), m_powerGatingOnWhenPinHigh(powerGatingOnWhenPinHigh)
 {