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.
Diff: UbloxCellularBase.cpp
- Branch:
- reset_timeout
- Revision:
- 27:250eaef6232d
- Parent:
- 26:e4e444cc7b14
- Child:
- 29:8a38f91009ad
diff -r e4e444cc7b14 -r 250eaef6232d UbloxCellularBase.cpp
--- a/UbloxCellularBase.cpp Thu Aug 01 18:57:01 2019 +0500
+++ b/UbloxCellularBase.cpp Fri Aug 02 11:56:14 2019 +0500
@@ -974,6 +974,7 @@
MBED_ASSERT(_at != NULL);
+ int at_timeout = _at_timeout; // Has to be inside LOCK()s
at_set_timeout(3*60*1000); //command has 3 minutes timeout
if (_at->send("AT+COPS=2") && _at->recv("OK")) {
@@ -983,6 +984,7 @@
success = true;
}
+ at_set_timeout(at_timeout);
UNLOCK();
return success;
}