Skip to content

Commit c2b7e15

Browse files
author
Veijo Pesonen
authored
Merge pull request #63 from ARMmbed/fix_tcpsocket_keepalive
Bugfix - open a TCP socket, not UDP, when TCP is intended
2 parents 9d07746 + a19e3cd commit c2b7e15

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
@@ -289,7 +289,7 @@ bool ESP8266::open_udp(int id, const char* addr, int port, int local_port)
289289

290290
bool ESP8266::open_tcp(int id, const char* addr, int port, int keepalive)
291291
{
292-
static const char *type = "UDP";
292+
static const char *type = "TCP";
293293
bool done = false;
294294

295295
if (id >= SOCKET_COUNT || _socket_open[id]) {

0 commit comments

Comments
 (0)