SMS test for AbitUSBModem. see: http://developer.mbed.org/users/phsfan/notebook/abitusbmodem/
Dependencies: AbitUSBModem USBHost mbed
Revision 1:f824d480d49e, committed 2015-02-25
- Comitter:
- phsfan
- Date:
- Wed Feb 25 14:35:15 2015 +0000
- Parent:
- 0:26b54873adb6
- Commit message:
- 1st build
Changed in this revision
AbitUSBModem.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 |
--- a/AbitUSBModem.lib Wed Feb 18 14:31:32 2015 +0000 +++ b/AbitUSBModem.lib Wed Feb 25 14:35:15 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/phsfan/code/AbitUSBModem/#7d9cc95e2ea7 +http://developer.mbed.org/users/phsfan/code/AbitUSBModem/#514e67a69ad6
--- 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);