ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-16T15:52:01+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3004 2016-12-16T15:52:01+08:00 2016-12-16T15:52:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3004&p=10906#p10906 <![CDATA[Re: Problem with tcp client cb function]]> You can user espconn_init() function have a test.

Code:

printf("test new compile..\n");
   espconn_init();
xTaskCreate(TcpLocalClient_Test,"TcpLocalClient_Test",500,NULL,6,NULL);

Statistics: Posted by ESP_Xutao — Fri Dec 16, 2016 3:52 pm


]]>
2016-11-06T20:03:25+08:00 2016-11-06T20:03:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3004&p=10419#p10419 <![CDATA[Problem with tcp client cb function]]> the esp8266 can connect to the server(PC) successfully.
but when i close the socket from PC side, it seems the esp8266 don't enter the "TcpReconnectCb" or "TcpClientDisConnect" call back funtion.
and instead,the esp8266 print follow debug message:

Code:

espconn_client_recv, espconn_client_close, err:0, p:       0
espconn_client_close, close

whats the problem? i want to realize the tcp client reconnect to the server automatically when socket disconnect occur.

thanks

Statistics: Posted by sunweili50 — Sun Nov 06, 2016 8:03 pm


]]>