Longer wait on BG96 stop
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -103,10 +103,11 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
|
|||||||
TINY_GSM_CLIENT_CONNECT_OVERRIDES
|
TINY_GSM_CLIENT_CONNECT_OVERRIDES
|
||||||
|
|
||||||
void stop(uint32_t maxWaitMs) {
|
void stop(uint32_t maxWaitMs) {
|
||||||
|
uint32_t startMillis = millis();
|
||||||
dumpModemBuffer(maxWaitMs);
|
dumpModemBuffer(maxWaitMs);
|
||||||
at->sendAT(GF("+QICLOSE="), mux);
|
at->sendAT(GF("+QICLOSE="), mux);
|
||||||
sock_connected = false;
|
sock_connected = false;
|
||||||
at->waitResponse();
|
at->waitResponse((maxWaitMs - (millis() - startMillis)));
|
||||||
}
|
}
|
||||||
void stop() override {
|
void stop() override {
|
||||||
stop(15000L);
|
stop(15000L);
|
||||||
|
Reference in New Issue
Block a user