Topic: Board connection behaviour of the cloud?
Hi,
on top of the app connection topic of the last days, i would like to add an item about the board connection behaviour.
My arduino+ESP8266 is connected via WLAN and router to the cloud.
i am observing the board connection flag with
is_connected = (remotexy -> isCloudConnected());
When the App is disconnecting for some reason (e.g short WLAN interruption), the board connection flag is going to 0 after about 2 minutes. It stays unconnected for about 30 sec, then the cloud server accepts the connection for about 1 minute, then it is disconnected again for about 30sec, ... and so on.
During the 30sec of disconnection, it is not possible to reconnect the app, it claims "board not connected."
So i have often to try to reconnect the app many times until i get by chance inside the time window of the connected board.
Is this the normal intended behaviour of the cloud server?
Or i am doing something wrong in my SW?
It would be better, if the board disconnection timeout would be much longer than 2 minutes.
I think in case of the implementation of the automatic app reconnection, the specific behaviour of the board connection cycling have to be taken into account. Maybe it would make sense to accept the board connection immediately, when the app is trying to connect.
Best regards, Peter