PHS module SMA-01 library. see: https://developer.mbed.org/users/phsfan/notebook/abitusbmodem/

Dependencies:   Socket lwip-sys lwip

Dependents:   AbitUSBModem_HTTPTest AbitUSBModem_MQTTTest AbitUSBModem_WebsocketTest AbitUSBModem_SMSTest

Fork of VodafoneUSBModem by mbed official

/media/uploads/phsfan/sma01_003.png

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)