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.
Dependencies: VodafoneUSBModem mbed-rtos mbed
Diff: main.cpp
- Revision:
- 5:92271e224db9
- Parent:
- 4:9bfe20a36f47
--- a/main.cpp Tue Oct 08 20:17:44 2013 +0000
+++ b/main.cpp Tue Oct 08 20:21:53 2013 +0000
@@ -8,7 +8,7 @@
#include "mbed.h"
#include "VodafoneUSBModem.h"
-#define TEST_NUMBER "+491799051492"
+#define TEST_NUMBER "0000"
#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) {