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: AbitUSBModem USBHost mbed
Diff: main.cpp
- Revision:
- 1:f824d480d49e
- Parent:
- 0:26b54873adb6
--- a/main.cpp Wed Feb 18 14:31:32 2015 +0000 +++ b/main.cpp Wed Feb 25 14:35:15 2015 +0000 @@ -7,7 +7,8 @@ void test(void const*) { AbitUSBModem modem; - modem.sendSM("07012345678", "Hello"); + + modem.sendSM("07012345678", "Hello mbed"); while(1) { char num[17]; @@ -15,7 +16,7 @@ int ret = modem.getSM(num, msg, 64); if (!ret) { - printf("%s : %s\n", num, msg); + printf("SMS from: %s, message: %s\r\n", num, msg); } Thread::wait(3000);