cellular port

Dependencies:   Beep C027_Support C12832 LM75B MMA7660 mbed-rtos mbed nsdl_lib

This is a port of the NSDL HelloWorld for cellular.

To run the example you need a C027 and the ARM mbed application shield. The example uses cellular instead of ethernet and takes the true position from the GPS instead of using a fixed position.

Revision:
13:03ba47370829
Parent:
12:2799b212c729
Child:
14:52e73f878ca0
diff -r 2799b212c729 -r 03ba47370829 main.cpp
--- a/main.cpp	Fri Jun 20 12:11:44 2014 +0000
+++ b/main.cpp	Thu Jul 03 17:24:32 2014 +0000
@@ -37,7 +37,7 @@
 
 // NSP configuration
 /* Change this IP address to that of your NanoService Platform installation */
-static const char* NSP_ADDRESS = "nanoservice-demo.mbed.org"; /* demo NSP, web interface at http://nanoservice-demo.mbed.org*/ 
+static const char* NSP_ADDRESS = "nanoservice-demo.mbed.org"; /* demo NSP, web interface at http://nanoservice-demo.mbed.org */ 
 static const int NSP_PORT = 5683;
 char endpoint_name[16] = "mbed-cellular";
 uint8_t ep_type[] = {"mbed_device"};
@@ -122,7 +122,7 @@
 {
     MDMRtos<MDMSerial> mdm;
     
-    //mdm.setDebug(4); // enable this for debugging issues 
+    mdm.setDebug(4); // enable this for debugging issues 
     if (!mdm.connect(SIMPIN, APN,USERNAME,PASSWORD))
         return;
 
@@ -174,7 +174,6 @@
 int main()
 {
     Serial pc(USBTX, USBRX);
-    pc.baud(115200);
     lcd.cls();
     lcd.locate(0,0);
     lcd.printf("mbed NanoService demo");