Base class for the u-blox N2xx modems. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the classes ending with 'n2xx', you will need this class also. Note: requires the N211 module firmware to be at least 06.57 A01.02.

Dependents:   example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client ... more

Revision:
5:66451d314225
Parent:
3:39eadc84c5ac
Child:
6:377997119ef1
--- a/UbloxCellularBaseN2xx.cpp	Thu Sep 28 15:31:54 2017 +0100
+++ b/UbloxCellularBaseN2xx.cpp	Thu Sep 28 15:34:08 2017 +0100
@@ -171,7 +171,6 @@
     LOCK();
     
     MBED_ASSERT(_at != NULL);
-
     
     tr_debug("ATREQ: %s => %s", cmd, recvFormat);
     if(_at->send(cmd) && _at->recv(recvFormat, response) && ATOK) {
@@ -181,7 +180,6 @@
         tr_error("ATRESULT: No Answer!");
     }
     
-
     UNLOCK();     
     return success;
 }
@@ -359,9 +357,9 @@
     char n[50];
     
     if (state)
-        sprintf(n, "AT+NCONFIG=%s,TRUE", name);
+        sprintf(n, "AT+NCONFIG=\"%s\",\"TRUE\"", name);
     else
-        sprintf(n, "AT+NCONFIG=%s,FALSE", name);      
+        sprintf(n, "AT+NCONFIG=\"%s\",\"FALSE\"", name);      
     
     return at_send(n);
 }