|
@ -226,6 +226,16 @@ public: |
|
|
return waitResponse() == 1; |
|
|
return waitResponse() == 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String getModemInfo() { |
|
|
|
|
|
sendAT(GF("I")); |
|
|
|
|
|
String res; |
|
|
|
|
|
if (waitResponse(1000L, res) != 1) { |
|
|
|
|
|
return ""; |
|
|
|
|
|
} |
|
|
|
|
|
res.trim(); |
|
|
|
|
|
return res; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Power functions |
|
|
* Power functions |
|
|
*/ |
|
|
*/ |
|
@ -581,7 +591,9 @@ public: |
|
|
} else if (data.endsWith(GF("+TCPCLOSE:"))) { |
|
|
} else if (data.endsWith(GF("+TCPCLOSE:"))) { |
|
|
int mux = stream.readStringUntil(',').toInt(); |
|
|
int mux = stream.readStringUntil(',').toInt(); |
|
|
stream.readStringUntil('\n'); |
|
|
stream.readStringUntil('\n'); |
|
|
sockets[mux]->sock_connected = false; |
|
|
|
|
|
|
|
|
if (mux >= 0 && mux < TINY_GSM_MUX_COUNT) { |
|
|
|
|
|
sockets[mux]->sock_connected = false; |
|
|
|
|
|
} |
|
|
data = ""; |
|
|
data = ""; |
|
|
DBG("### Closed: ", mux); |
|
|
DBG("### Closed: ", mux); |
|
|
} |
|
|
} |
|
|