test

Dependencies:   C027 HTTPClient UbloxUSBModem mbed

Fork of C027_HTTPClientTest by u-blox

Revision:
10:e2315bcdd7be
Parent:
9:574322be1093
Child:
11:ab536fc3a722
Child:
12:393f2a870b42
Child:
14:88552ae75244
--- 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);