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
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;
}
u-blox