Thank you very much for your offer to help. I appreciate it.
When the code starts, it connects to my TCP server. If I stop the server manually, the code senses the loss of connection immediately. But if I restart the server, the client never reconnects again.
If I restart the server application (Windows), the client still does not reconnect. The only way is to recycle power to the Photon to get a fresh connection. BTW, once it connects, the client remains connected. Yesterday, I left it overnight and in the morning the client was still connected…
Here is a link to the code:
Update: If the micro-controller starts with the server down, it does connect to the server when the server is up and running. So in summary, the problem is that the client does not reconnect to the server AFTER a successful initial connection.
I hope this helps and thanks again in advance as this issue is a show stopper …