From 28903e76a565e313efa0e0e354b2a41b49e2c3e1 Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Wed, 25 Oct 2017 16:05:33 -0400 Subject: [PATCH] Removed GSM_NL around socket close for ESP --- src/TinyGsmClientESP8266.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index 6f4fc13..f5aadba 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -481,9 +481,11 @@ public: } data = ""; return index; - } else if (data.endsWith(GF(GSM_NL "1,CLOSED" GSM_NL))) { //TODO: use mux + } else if (data.endsWith(GF("1,CLOSED"))) { //TODO: use mux DBG("### Socket has been closed."); sockets[1]->sock_connected = false; + data = ""; + return index; } } } while (millis() - startMillis < timeout);