From 83c783dd80c8d3c780efb8ad2b05d1fde870144b Mon Sep 17 00:00:00 2001 From: Nacho Date: Mon, 20 Oct 2014 10:31:37 +0200 Subject: [PATCH] Update ESP8266_TCP.cpp Fix the message.length in the Send Method --- ESP8266_TCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESP8266_TCP.cpp b/ESP8266_TCP.cpp index 88c700c..3558142 100644 --- a/ESP8266_TCP.cpp +++ b/ESP8266_TCP.cpp @@ -537,7 +537,7 @@ bool ESP8266_TCP::send(int id, String message) { if(getRunningState() == WIFI_STATE_IDLE) { debugPrintln("ID : " + String(id) + " Send : " + message); clearBuffer(); - write("AT+CIPSEND=" + String(id) + "," + String(message.length() + 1)); + write("AT+CIPSEND=" + String(id) + "," + String(message.length())); serial->print(message); flush(); debugPrintln(readData());