mirror of
https://github.com/KevinMidboe/TinyGSM.git
synced 2025-10-29 18:00:18 +00:00
Fix typos, tweak to timeout
This commit is contained in:
@@ -341,7 +341,7 @@ TINY_GSM_MODEM_GET_OPERATOR_COPS()
|
||||
* Generic network functions
|
||||
*/
|
||||
|
||||
TINY_GSP_MODEM_GET_CSQ()
|
||||
TINY_GSM_MODEM_GET_CSQ()
|
||||
|
||||
bool isNetworkConnected() {
|
||||
RegStatus s = getRegistrationStatus();
|
||||
@@ -413,7 +413,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
|
||||
return true;
|
||||
}
|
||||
|
||||
TINY_GSP_MODEM_GET_GPRS_IP_CONNECTED()
|
||||
TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED()
|
||||
|
||||
/*
|
||||
* IP Address functions
|
||||
@@ -587,10 +587,7 @@ protected:
|
||||
streamSkipUntil('\"');
|
||||
|
||||
for (size_t i=0; i<len; i++) {
|
||||
uint32_t startMillis = millis();
|
||||
while (!stream.available() && (millis() - startMillis < sockets[mux]->_timeout)) { TINY_GSM_YIELD(); }
|
||||
char c = stream.read();
|
||||
sockets[mux]->rx.put(c);
|
||||
TINY_GSM_MODEM_STREAM_TO_MUX_FIFO_WITH_DOUBLE_TIMEOUT
|
||||
}
|
||||
streamSkipUntil('\"');
|
||||
waitResponse();
|
||||
@@ -647,7 +644,7 @@ public:
|
||||
Utilities
|
||||
*/
|
||||
|
||||
TINY_GSP_MODEM_STREAM_UTILITIES()
|
||||
TINY_GSM_MODEM_STREAM_UTILITIES()
|
||||
|
||||
// TODO: Optimize this!
|
||||
uint8_t waitResponse(uint32_t timeout_ms, String& data,
|
||||
|
||||
Reference in New Issue
Block a user