|
@ -660,7 +660,9 @@ protected: |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (ssl) DBG("SSL not yet supported on this module!"); |
|
|
|
|
|
|
|
|
if (ssl) { |
|
|
|
|
|
DBG("SSL not yet supported on this module!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Establish a connection in multi-socket mode |
|
|
// Establish a connection in multi-socket mode |
|
|
uint32_t timeout_ms = ((uint32_t)timeout_s) * 1000; |
|
|
uint32_t timeout_ms = ((uint32_t)timeout_s) * 1000; |
|
@ -706,7 +708,7 @@ protected: |
|
|
// ^^ Requested number of data bytes (1-1460 bytes)to be read |
|
|
// ^^ Requested number of data bytes (1-1460 bytes)to be read |
|
|
int len_confirmed = stream.readStringUntil('\n').toInt(); |
|
|
int len_confirmed = stream.readStringUntil('\n').toInt(); |
|
|
// ^^ The data length which not read in the buffer |
|
|
// ^^ The data length which not read in the buffer |
|
|
for (size_t i=0; i<len_requested; i++) { |
|
|
|
|
|
|
|
|
for (int i=0; i<len_requested; i++) { |
|
|
uint32_t startMillis = millis(); |
|
|
uint32_t startMillis = millis(); |
|
|
#ifdef TINY_GSM_USE_HEX |
|
|
#ifdef TINY_GSM_USE_HEX |
|
|
while (stream.available() < 2 && (millis() - startMillis < sockets[mux]->_timeout)) { TINY_GSM_YIELD(); } |
|
|
while (stream.available() < 2 && (millis() - startMillis < sockets[mux]->_timeout)) { TINY_GSM_YIELD(); } |
|
|