Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of VodafoneUSBModem by
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)