Simple test for USSD message.
Dependencies: C027 UbloxUSBModem mbed
Fork of C027_USSDTest by
Revision 7:6047f1c64e8d, committed 2013-11-06
- Comitter:
- mazgch
- Date:
- Wed Nov 06 10:48:12 2013 +0000
- Parent:
- 6:1719025c7dfa
- Child:
- 8:f1553dd1d597
- Commit message:
- use latest C027 library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Nov 06 10:35:55 2013 +0000 +++ b/main.cpp Wed Nov 06 10:48:12 2013 +0000 @@ -5,8 +5,11 @@ #define USSD_COMMAND "*#134#" +C027 c027; + void test(void const*) { + c027.mdmPower(true); UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead char result[32]; @@ -19,7 +22,8 @@ printf("Result of command: %s\n", result); - + c027.mdmPower(false); + while(1) { } } @@ -28,7 +32,7 @@ int main() { Thread testTask(test, NULL, osPriorityNormal, 1024 * 4); - DigitalOut led(A0); // Connect a LED to A0 if you like to see some blinking + DigitalOut led(LED); // on rev A you should reasign the signal to A0 while(1) { led=!led; Thread::wait(1000);