local fork

Dependencies:   Socket USBHostWANDongle_bleedingedge lwip-sys lwip

Dependents:   Encrypted

Fork of VodafoneUSBModem_bleedingedge by Donatien Garnier

Revision:
57:593fb493172f
Parent:
56:f1965f3f4504
Child:
60: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)