fork of VodafoneUSBModem with updated USBHost library
Dependencies: Socket USBHost lwip-sys lwip
Dependents: VodafoneUSBModemSMSTest
Diff: sms/SMSInterface.cpp
- Revision:
- 59:593fb493172f
- Parent:
- 58:f1965f3f4504
- Child:
- 62:6f42a974eea6
--- a/sms/SMSInterface.cpp Mon Oct 22 15:47:01 2012 +0000 +++ b/sms/SMSInterface.cpp Wed Oct 24 14:13:49 2012 +0000 @@ -329,13 +329,22 @@ /*virtual*/ void SMSInterface::onDispatchStart() { - - + } /*virtual*/ void SMSInterface::onDispatchStop() { + +} +/*virtual*/ char* SMSInterface::getEventsEnableCommand() +{ + return "AT+CNMI=2,1,0,0,0"; +} + +/*virtual*/ char* SMSInterface::getEventsDisableCommand() +{ + return "AT+CNMI=0,0,0,0,0"; //Indications will be buffered within the modem and flushed back when the former command is executed } /*virtual*/ void SMSInterface::onEvent(const char* atCode, const char* evt)