test

Dependencies:   C027 HTTPClient UbloxUSBModem mbed

Fork of C027_HTTPClientTest by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Wed Nov 06 10:49:08 2013 +0000
Parent:
9:574322be1093
Child:
11:ab536fc3a722
Child:
12:393f2a870b42
Child:
14:88552ae75244
Commit message:
use latest C027 library

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	Mon Oct 21 20:03:12 2013 +0000
+++ b/C027.lib	Wed Nov 06 10:49:08 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027/#ff17f16cf70a
+http://mbed.org/teams/ublox/code/C027/#bc9e2eb5daa8
--- 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);