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

Files at this revision

API Documentation at this revision

Comitter:
fahim alavi
Date:
Tue Jan 09 12:46:00 2018 +0500
Parent:
7:f1c3373e4ff5
Child:
9:4368e434de4e
Commit message:
Code updated according to convention

Changed in this revision

UbloxCellularBaseN2xx.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxCellularBaseN2xx.h Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxCellularBaseN2xx.cpp	Wed Jan 03 05:50:31 2018 +0000
+++ b/UbloxCellularBaseN2xx.cpp	Tue Jan 09 12:46:00 2018 +0500
@@ -395,15 +395,14 @@
     return success;
 }
 
-bool UbloxCellularBaseN2xx::get_imei(char *buffer,int size)
+bool UbloxCellularBaseN2xx::get_imei(char *buffer, int size)
 {
     // International mobile equipment identifier
     // AT Command Manual UBX-13002752, section 4.7
     bool success = cgsn(1, _dev_info.imei);
     tr_info("DevInfo: IMEI=%s", _dev_info.imei);
     
-    if(success)
-    {
+    if (success) {
         memcpy(buffer,_dev_info.imei,size);
         buffer[size-1] = '\0';
     }
--- a/UbloxCellularBaseN2xx.h	Wed Jan 03 05:50:31 2018 +0000
+++ b/UbloxCellularBaseN2xx.h	Tue Jan 09 12:46:00 2018 +0500
@@ -230,7 +230,7 @@
     *
     * @return true if successful, otherwise false.
     */
-    bool get_imei(char *buffer,int size);
+    bool get_imei(char *buffer, int size);
 
 protected: