Shows how to send and receive SMS messages using a Vodafone USB dongle.

Dependencies:   VodafoneUSBModem mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
ashleymills
Date:
Tue Oct 08 20:17:44 2013 +0000
Parent:
3:bb67c6ba4998
Child:
5:92271e224db9
Commit message:
Updated to latest libs.

Changed in this revision

VodafoneUSBModem.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/VodafoneUSBModem.lib	Fri Nov 30 13:57:17 2012 +0000
+++ b/VodafoneUSBModem.lib	Tue Oct 08 20:17:44 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/VodafoneUSBModem/#66db9afdc3c1
+http://mbed.org/users/mbed_official/code/VodafoneUSBModem/#7b311719374d
--- a/main.cpp	Fri Nov 30 13:57:17 2012 +0000
+++ b/main.cpp	Tue Oct 08 20:17:44 2013 +0000
@@ -8,7 +8,7 @@
 #include "mbed.h"
 #include "VodafoneUSBModem.h"
 
-#define TEST_NUMBER "YOUR_NUMBER"
+#define TEST_NUMBER "+491799051492"
 #define MAX_SMS_LEN 256
 
 int main() {
@@ -26,9 +26,9 @@
     
    // send a wake-up SMS
    DBG("Sending test SMS to %s",TEST_NUMBER);
-   if(modem.sendSM(TEST_NUMBER,"Hello!")!=0) {
-      DBG("Error sending test SMS!");
-   }
+   //if(modem.sendSM(TEST_NUMBER,"Hello!")!=0) {
+   //   DBG("Error sending test SMS!");
+   //}
     
    // loop forever printing received SMSs
    while(1) {
--- a/mbed-rtos.lib	Fri Nov 30 13:57:17 2012 +0000
+++ b/mbed-rtos.lib	Tue Oct 08 20:17:44 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#88a1a9c26ae3
+http://mbed.org/users/mbed_official/code/mbed-rtos/#ee87e782d34f
--- a/mbed.bld	Fri Nov 30 13:57:17 2012 +0000
+++ b/mbed.bld	Tue Oct 08 20:17:44 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b60934f96c0c
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file