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 36:9d48ec522cb4, committed 2019-08-19
- Comitter:
- wajahat.abbas@u-blox.com
- Date:
- Mon Aug 19 17:36:04 2019 +0500
- Parent:
- 35:ca29480080ac
- Child:
- 37:0ceb2dfc746c
- Commit message:
- Fix to read OK as well
Changed in this revision
UbloxATCellularInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UbloxATCellularInterface.cpp Thu Aug 08 17:32:28 2019 +0500 +++ b/UbloxATCellularInterface.cpp Mon Aug 19 17:36:04 2019 +0500 @@ -441,7 +441,8 @@ at_timeout = _at_timeout; // Has to be inside LOCK()s at_set_timeout(150000); - if (_at->send("AT+CGACT?") && _at->recv("+CGACT: %*d,%d\n", &active)) { + if (_at->send("AT+CGACT?") && _at->recv("+CGACT: %*d,%d\n", &active) && + _at->recv("OK")) { if (active == 1) { status = true; }