Hi
I have some some Arduino code which uses the WiFi 101 library. It all works fine except for when I am trying to check the status of the TCP connection (in order to implement some reconnection logic).
There is a WiFiClient.status() method but this is deprecated and always returns 0. There is a WiFiClient.connected() method but when I call this then it seems to break my code as the tcp connection breaks even though there is nothing in my conditional - the mere calling of it seems to cause problems.
For what it's worth, I am calling this function very regularly (e.g. every 50 microseconds).
Does anyone know what is happening? Any general tips on implementing reconnection logic appreciated.
Thanks