Base class for the ublox-xxx-cellular-xxx classes. 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 ublox-xxx-cellular-xxx classes, you will need this class also.

Dependents:   example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more

Files at this revision

API Documentation at this revision

Comitter:
fahim alavi
Date:
Tue Jan 09 12:34:53 2018 +0500
Parent:
11:57f64bc518c0
Child:
13:158a035b1b50
Commit message:
Code convention applied

Changed in this revision

UbloxCellularBase.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxCellularBase.h Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxCellularBase.cpp	Tue Jan 02 12:38:56 2018 +0500
+++ b/UbloxCellularBase.cpp	Tue Jan 09 12:34:53 2018 +0500
@@ -213,7 +213,7 @@
      *
      * @return true if successful, otherwise false.
      */
-bool UbloxCellularBase::get_imei(char *imei_to_send,int size)
+bool UbloxCellularBase::get_imei(char *imei_to_send, int size)
 {
     bool success;
     LOCK();
@@ -225,8 +225,7 @@
     success = _at->send("AT+CGSN") && _at->recv("%15[^\n]\nOK\n", _dev_info.imei);
     tr_info("DevInfo: IMEI=%s", _dev_info.imei);
 	
-	if(success)
-	{
+	if (success)	{
 		memcpy(imei_to_send,_dev_info.imei,size);
 		imei_to_send[size-1] = '\0';
 	}
--- a/UbloxCellularBase.h	Tue Jan 02 12:38:56 2018 +0500
+++ b/UbloxCellularBase.h	Tue Jan 09 12:34:53 2018 +0500
@@ -138,7 +138,7 @@
      *
      * @return true if successful, otherwise false.
      */
-	bool get_imei(char *imei_to_send,int size);
+	bool get_imei(char *imei_to_send, int size);
 
 protected:
 
@@ -186,8 +186,8 @@
        HSUPA = 5,
        HSDPA_HSUPA = 6,
        LTE = 7,
-       EC_GSM_IoT =8,
-       E_UTRAN_NB_S1=9
+       EC_GSM_IoT = 8,
+       E_UTRAN_NB_S1 = 9
     } RadioAccessNetworkType;
 
     /** Info about the modem.