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
Diff: UbloxCellularBase.h
- Revision:
- 14:e420232ee4e7
- Parent:
- 12:aa3cbc3f88c5
- Child:
- 20:31d5e048fbfa
diff -r 158a035b1b50 -r e420232ee4e7 UbloxCellularBase.h
--- a/UbloxCellularBase.h Tue Jan 09 15:08:31 2018 +0500
+++ b/UbloxCellularBase.h Tue Jan 09 13:20:15 2018 +0000
@@ -17,6 +17,7 @@
#define _UBLOX_CELLULAR_BASE_
#include "mbed.h"
+#include "mbed_toolchain.h" // for MBED_DEPRECATED
#include "ATCmdParser.h"
#include "FileHandle.h"
@@ -138,8 +139,41 @@
*
* @return true if successful, otherwise false.
*/
+ MBED_DEPRECATED("This method is now replaced by const char * imei(), please use that instead")
bool get_imei(char *imei_to_send, int size);
+ /** Get the IMEI of the module.
+ *
+ * @return a pointer to the IMEI as a null-terminated string.
+ */
+ const char *imei();
+
+ /** Get the Mobile Equipment ID (which may be the same as the IMEI).
+ *
+ * @return a pointer to the Mobile Equipment ID as a null-terminated string.
+ */
+ const char *meid();
+
+ /** Get the IMSI of the SIM.
+ *
+ * @return a pointer to the IMSI as a null-terminated string.
+ */
+ const char *imsi();
+
+ /** Get the ICCID of the SIM.
+ *
+ * @return a pointer to the ICCID as a null-terminated string.
+ */
+ const char *iccid();
+
+ /** Get the RSSI.
+ *
+ * @return the RSSI in dBm. If it is not possible to obtain an
+ * RSSI reading at the time (e.g. because the modem is in
+ * data mode rather than AT command mode) then 0 is returned.
+ */
+ int rssi();
+
protected:
#define OUTPUT_ENTER_KEY "\r"
u-blox