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.
Fork of MTS-Cellular by
Diff: Cellular/Cellular.h
- Revision:
- 63:f46ef5823ab5
- Parent:
- 56:43205bd2752a
- Child:
- 69:93dace69ee98
--- a/Cellular/Cellular.h Wed Aug 13 21:50:43 2014 +0000 +++ b/Cellular/Cellular.h Mon Aug 18 17:16:27 2014 +0000 @@ -462,6 +462,12 @@ * @returns true if the IP was set, false if IP address assignment failed. */ virtual bool setDeviceIP(std::string address = "DHCP"); + + /** Get the device IMEI or MEID (whichever is available) + * @returns string containing the IMEI for GSM, the MEID for CDMA, or an empty string + * if it failed to parse the number. + */ + std::string getEquipmentIdentifier(); protected: MTSBufferedIO* io; //IO interface obect that the radio is accessed through.