test

Dependencies:   C027 HTTPClient UbloxUSBModem mbed

Fork of C027_HTTPClientTest by u-blox

Revision:
6:77c131006c67
Parent:
4:47a1a2527e25
Child:
7:c558c74ceb0f
--- a/main.cpp	Tue Oct 30 10:18:34 2012 +0000
+++ b/main.cpp	Mon Oct 21 08:50:06 2013 +0000
@@ -1,14 +1,17 @@
 #include "mbed.h"
-#include "VodafoneUSBModem.h"
+#include "C027.h"
+#include "UbloxUSBGSMModem.h"
+#include "UbloxUSBCDMAModem.h"
+
 #include "HTTPClient.h"
 
 void test(void const*) 
 {
-    VodafoneUSBModem modem;
+    UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead
     HTTPClient http;
     char str[512];
     
-    int ret = modem.connect("pp.vodafone.co.uk");
+    int ret = modem.connect(); // eventaully set a apn here
     if(ret)
     {
       printf("Could not connect\n");
@@ -55,7 +58,7 @@
 int main()
 {
   Thread testTask(test, NULL, osPriorityNormal, 1024 * 4);
-  DigitalOut led(LED1);
+  DigitalOut led(A0);
   while(1)
   {
     led=!led;