mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
Tacked in some maintains to hopefully reduce missed URC's
This commit is contained in:
@@ -942,6 +942,7 @@ protected:
|
||||
return 0;
|
||||
}
|
||||
streamSkipUntil(','); // Skip mux
|
||||
maintain(); // look for a very quick response from the remote
|
||||
return stream.readStringUntil('\n').toInt();
|
||||
}
|
||||
|
||||
@@ -984,6 +985,7 @@ protected:
|
||||
}
|
||||
waitResponse();
|
||||
DBG("### READ:", len_confirmed, "from", mux);
|
||||
maintain(); // Listen for a close or other URC
|
||||
return len_confirmed;
|
||||
}
|
||||
|
||||
@@ -999,6 +1001,7 @@ protected:
|
||||
if (!result) {
|
||||
sockets[mux]->sock_connected = modemGetConnected(mux);
|
||||
}
|
||||
maintain(); // Listen for a close or other URC
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1006,6 +1009,7 @@ protected:
|
||||
sendAT(GF("+CIPSTATUS="), mux);
|
||||
int res = waitResponse(GF(",\"CONNECTED\""), GF(",\"CLOSED\""), GF(",\"CLOSING\""), GF(",\"INITIAL\""));
|
||||
waitResponse();
|
||||
maintain(); // Listen for a close or other URC
|
||||
return 1 == res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user