Simple test for USSD message.
Dependencies: C027 UbloxUSBModem mbed
Fork of C027_USSDTest by
Diff: main.cpp
- Revision:
- 3:08248ee71fc0
- Parent:
- 1:e5d64ece3a8c
- Child:
- 4:ffbfe5f03e61
--- a/main.cpp Tue Oct 30 10:24:12 2012 +0000 +++ b/main.cpp Mon Oct 21 08:51:10 2013 +0000 @@ -1,11 +1,13 @@ #include "mbed.h" -#include "VodafoneUSBModem.h" +#include "C027.h" +#include "UbloxUSBGSMModem.h" +#include "UbloxUSBCDMAModem.h" #define USSD_COMMAND "*#134#" void test(void const*) { - VodafoneUSBModem modem; + UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead char result[32]; printf("Sending %s on USSD channel\n", USSD_COMMAND); @@ -27,7 +29,7 @@ int main() { Thread testTask(test, NULL, osPriorityNormal, 1024 * 4); - DigitalOut led(LED1); + DigitalOut led(A0); while(1) { led=!led;