NTPClientTest, working with SARA-G350 on C027
Dependencies: C027 NTPClient UbloxUSBModem mbed
Fork of C027_USSDTest_SARA350 by
Revision 11:393f2a870b42, committed 2014-02-03
- Comitter:
- sam_grove
- Date:
- Mon Feb 03 15:55:12 2014 +0000
- Parent:
- 10:e2315bcdd7be
- Child:
- 14:b2b75c8a01fa
- Commit message:
- made CMDA default and added modem reset and boot code
Changed in this revision
C027.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/C027.lib Wed Nov 06 10:49:08 2013 +0000 +++ b/C027.lib Mon Feb 03 15:55:12 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/ublox/code/C027/#bc9e2eb5daa8 +http://mbed.org/teams/ublox/code/C027/#37252d7bcd9e
--- 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);