port to cellular

Dependencies:   C027_Support M2XStreamClient jsonlite mbed-rtos mbed

Fork of Cellular_m2x-demo-all by Michael Ammann

Revision:
17:cad6c0ab9811
Parent:
16:5f9a8ea108bb
Child:
18:416ddef3e86f
--- a/main.cpp	Fri Dec 12 08:19:22 2014 +0000
+++ b/main.cpp	Sun Jan 04 01:12:13 2015 +0000
@@ -51,7 +51,11 @@
 }
 
 int main() {
+#if 0 // TARGET_FF_MORPHO
+  MDMSerial mdm(D8,D2); // use the serrial port on D2 / D8
+#else
   MDMSerial mdm;
+#endif  
   GPSI2C gps;
   //mdm.setDebug(4); // enable this for debugging issues 
   if (!mdm.connect(SIMPIN, APN,USERNAME,PASSWORD))
@@ -71,7 +75,7 @@
             // talker is $GA=Galileo $GB=Beidou $GL=Glonass $GN=Combined $GP=GPS
             if ((buf[0] == '$') || buf[1] == 'G') {
                 #define _CHECK_TALKER(s) ((buf[3] == s[0]) && (buf[4] == s[1]) && (buf[5] == s[2]))
-                if (_CHECK_TALKER("GLL")) {
+                if (_CHECK_TALKER("GGA")) {
                     char ch;
                     if (gps.getNmeaAngle(2,buf,len,latitude) && 
                         gps.getNmeaAngle(4,buf,len,longitude) &&