root how to send heartbeat to server by tcp connection along mesh

Tiffany
Posts: 6
Joined: Thu Apr 27, 2017 11:00 am

root how to send heartbeat to server by tcp connection along mesh

Postby Tiffany » Mon Aug 28, 2017 6:10 pm

Hello,I have set a connection between an esp8266(as root ) and my server using tcp .And as you know,heartbeat message must be always sent to server to keep the tcp connection.Then I tried use
' espconn_set_opt(&user_tcp_conn1,0x04);espconn_regist_write_finish(&user_tcp_conn1, user_tcp_write_finish); 'It only send 8 times;And maybe watchdog?I have seen a document said that watchdog can not support Infinite loop,either.
So how to send heartbeat to server by tcp connection along mesh,like demo_server.py,server always send message even in mesh.how to realize Infinite loop---- tcp heart message work along with mesh network.
Thanks.Hope for your reply

Who is online

Users browsing this forum: No registered users and 4 guests