Implementation of the CellularInterface for u-blox C027 and C030 (non-N2xx flavour) modems that uses the IP stack on-board the cellular modem, hence not requiring LWIP (and so less RAM) and allowing any AT command exchanges to be carried out at the same time as data transfers (since the modem remains in AT mode all the time). This library may be used from mbed 5.5 onwards. If you need to use SMS, USSD or access the modem file system at the same time as using the CellularInterface then use ublox-at-cellular-interface-ext instead.
Dependents: example-ublox-cellular-interface example-ublox-cellular-interface_r410M example-ublox-mbed-client example-ublox-cellular-interface ... more
Revision 29:773cfb0fe56c, committed 2019-07-29
- Comitter:
- fahimalavi
- Date:
- Mon Jul 29 14:49:01 2019 +0500
- Parent:
- 28:aef4a3de0de3
- Child:
- 30:0f571a4920c8
- Commit message:
- Minor fix : no need to activate profile if already activated
Changed in this revision
UbloxATCellularInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxATCellularInterface.cpp Mon Jun 24 11:42:03 2019 +0500 +++ b/UbloxATCellularInterface.cpp Mon Jul 29 14:49:01 2019 +0500 @@ -1180,7 +1180,10 @@ if (nwk_registration()) { registered = true; #ifdef TARGET_UBLOX_C030_R41XM - if (activate_context()) { + if(is_registered_psd() || is_registered_eps()) { + nsapi_error = NSAPI_ERROR_OK; + } + else if (activate_context()) { nsapi_error = NSAPI_ERROR_OK; } #endif