NTPClientTest, working with SARA-G350 on C027
Dependencies: C027 NTPClient UbloxUSBModem mbed
Fork of C027_USSDTest_SARA350 by
Diff: main.cpp
- Revision:
- 11:393f2a870b42
- Parent:
- 10:e2315bcdd7be
- Child:
- 14:b2b75c8a01fa
--- a/main.cpp Wed Nov 06 10:49:08 2013 +0000 +++ b/main.cpp Mon Feb 03 15:55:12 2014 +0000 @@ -10,11 +10,16 @@ void test(void const*) { c027.mdmPower(true); - UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead + c027.mdmReset(); + c027.mdmWakeup(); + UbloxUSBCDMAModem modem(NC, true, 1); // for LISA-C use the UbloxUSBCDMAModem instead + modem.power(true); + Thread::wait(1000); + HTTPClient http; char str[512]; - - int ret = modem.connect("internet"); // eventaully set another apn here + + int ret = modem.connect("internet", NULL, NULL); // eventaully set another apn here if(ret) { printf("Could not connect %d\n", ret);