Skip to content

Commit c588afe

Browse files
committed
Reverting CIPSENDBUF to CIPSEND to fix UDP connections. Tested on both UDP and TCP.
1 parent f6f7c3a commit c588afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ESP8266/ESP8266.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ bool ESP8266::send(int id, const void *data, uint32_t amount)
199199
{
200200
//May take a second try if device is busy
201201
for (unsigned i = 0; i < 2; i++) {
202-
if (_parser.send("AT+CIPSENDBUF=%d,%d", id, amount)
202+
if (_parser.send("AT+CIPSEND=%d,%d", id, amount)
203203
&& _parser.recv(">")
204204
&& _parser.write((char*)data, (int)amount) >= 0) {
205205
return true;

0 commit comments

Comments
 (0)