Hi, I am using the TCP \ IP library.
The device and the computer speak continuously in the form of question and answer.
The device closes the tcp port after 2 minutes.
How do I keep the connection alive?
Can you provide sample code?
Thanks.
ByCoders
Joined: 02 Jul 2019 Posts: 2
Re: Tcp port shutdown problem.
Posted: Tue Jul 02, 2019 9:55 am
ByCoders wrote:
Hi, I am using the TCP \ IP library.
The device and the computer speak continuously in the form of question and answer.
The device closes the tcp port after 2 minutes.
How do I keep the connection alive?
Can you provide sample code?
Thanks.
WDT is opening.
I think the Ethernet library is doing it.
restart_wdt(); solved my job.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum