NTPClientTest, working with SARA-G350 on C027
Dependencies: C027 NTPClient UbloxUSBModem mbed
Fork of C027_USSDTest_SARA350 by
Diff: main.cpp
- Revision:
- 10:e2315bcdd7be
- Parent:
- 9:574322be1093
- Child:
- 11:393f2a870b42
- Child:
- 12:88552ae75244
diff -r 574322be1093 -r e2315bcdd7be main.cpp --- a/main.cpp Mon Oct 21 20:03:12 2013 +0000 +++ b/main.cpp Wed Nov 06 10:49:08 2013 +0000 @@ -5,8 +5,11 @@ #include "HTTPClient.h" +C027 c027; + void test(void const*) { + c027.mdmPower(true); UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead HTTPClient http; char str[512]; @@ -43,7 +46,8 @@ } modem.disconnect(); - + c027.mdmPower(false); + while(1) { } } @@ -52,7 +56,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);