I want to setup a timer and check connection to wireless router to see if connection has dropped. I believe it raises to callbacks: ConnectionCallback call = onConnectOk; and ConnectionCallback call = onConnectFail;
This is to help with tracking the MQTT failure, I think it is a router thing.
Can you give me a simple example of how I add this to the MQTT program, I am cool with timers, so will config the timer to check lets say every ten seconds and call the checkConnection() function.
Big thanks
Dans