test

Dependencies:   C027 HTTPClient UbloxUSBModem mbed

Fork of C027_HTTPClientTest by u-blox

Revision:
12:393f2a870b42
Parent:
10:e2315bcdd7be
Child:
16: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);