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.
Dependents: example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client ... more
Revision 9:4368e434de4e, committed 2018-01-09
- Comitter:
- fahim alavi
- Date:
- Tue Jan 09 15:25:11 2018 +0500
- Parent:
- 8:72412b28c93f
- Child:
- 10:1afe5ed24f0c
- Commit message:
- Method moved with protected functions
Changed in this revision
| UbloxCellularBaseN2xx.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxCellularBaseN2xx.cpp Tue Jan 09 12:46:00 2018 +0500
+++ b/UbloxCellularBaseN2xx.cpp Tue Jan 09 15:25:11 2018 +0500
@@ -364,6 +364,21 @@
return at_send(n);
}
+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) {
+ memcpy(buffer,_dev_info.imei,size);
+ buffer[size-1] = '\0';
+ }
+
+ return success;
+}
+
bool UbloxCellularBaseN2xx::get_iccid()
{
// Returns the ICCID (Integrated Circuit Card ID) of the SIM-card.
@@ -395,21 +410,6 @@
return success;
}
-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) {
- memcpy(buffer,_dev_info.imei,size);
- buffer[size-1] = '\0';
- }
-
- return success;
-}
-
bool UbloxCellularBaseN2xx::get_meid()
{
// *** NOT IMPLEMENTED on SARA-N2XX