Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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"