Support for LISA-N101

Fork of C027_Support by u-blox

This is a variant of the C027 driver code for the C027N version, i.e. the one with the Neul/Huawei/u-blox Cellular Internet of Things module on board. The AT command interface for this module is entirely different to the AT interface for the other u-blox modules, hence this fork of the driver. Work is underway to rearchitect the original C027 driver so that a merge can be done.

Revision:
33:fb8fb5021b09
Parent:
32:8f12ac182bbb
Child:
35:9275215a3a5b
--- a/MDM.cpp	Wed Apr 09 13:03:48 2014 +0000
+++ b/MDM.cpp	Wed Apr 09 13:51:26 2014 +0000
@@ -244,7 +244,7 @@
             return false;
         // Return the pseudo ESN or MEID
         sendFormated("AT+GSN\r\n");
-        if (OK != waitFinalResp(_cbString, _dev.imei))
+        if (OK != waitFinalResp(_cbString, _dev.meid))
             return false;
     } else {
         // disable flow control
@@ -384,7 +384,7 @@
         if (OK != waitFinalResp(_cbString, _net.num))
             return false;
         // check if we have a Mobile Directory Number
-        if (memcmp(_net.num, "0000", 4) == 0);
+        if (memcmp(_net.num, "0000", 4) == 0)
             return false;
         // get the the Network access identifier string
         char nai[64];