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.
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
- 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; }