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 ublox-cellular-base by
Revision 12:aa3cbc3f88c5, committed 2018-01-09
- 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.
