Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
Revision 27:250eaef6232d, committed 2019-08-02
- Comitter:
- mudassar0121
- Date:
- Fri Aug 02 11:56:14 2019 +0500
- Branch:
- reset_timeout
- Parent:
- 26:e4e444cc7b14
- Child:
- 28:a8e1f25a8a52
- Commit message:
- reset timeout to default in nwk_deregistration
Changed in this revision
| UbloxCellularBase.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
}
u-blox