|
|
@ -690,10 +690,11 @@ protected: |
|
|
|
} |
|
|
|
} |
|
|
|
waitResponse(5000L); |
|
|
|
maintain(); // look for a very quick response from the remote |
|
|
|
|
|
|
|
// streamSkipUntil(','); // Skip mux |
|
|
|
// return stream.readStringUntil('\n').toInt(); |
|
|
|
return 1; |
|
|
|
return len; // TODO |
|
|
|
} |
|
|
|
|
|
|
|
size_t modemRead(size_t size, uint8_t mux) { |
|
|
@ -711,6 +712,7 @@ protected: |
|
|
|
} |
|
|
|
waitResponse(); |
|
|
|
DBG("### READ:", len, "from", mux); |
|
|
|
maintain(); // Listen for a close or other URC |
|
|
|
return len; |
|
|
|
} |
|
|
|
|
|
|
@ -727,6 +729,7 @@ protected: |
|
|
|
if (!result) { |
|
|
|
sockets[mux]->sock_connected = modemGetConnected(mux); |
|
|
|
} |
|
|
|
maintain(); // Listen for a close or other URC |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
@ -745,6 +748,7 @@ protected: |
|
|
|
int res = stream.readStringUntil(',').toInt(); // socket state |
|
|
|
|
|
|
|
waitResponse(); |
|
|
|
maintain(); // Listen for a close or other URC |
|
|
|
|
|
|
|
// 0 Initial, 1 Opening, 2 Connected, 3 Listening, 4 Closing |
|
|
|
return 2 == res; |
|
|
|