As I told you, I follow the connection status in the Log (several lines contain the status of MQTT connected)
May be the picture hereafter could help you to understand :
- above the red line ((20:03), this is the log of a "normal" MQTT exchange (send amuteoff, receive and ignore my MQTT message, receive MQTT response of server)
- at 20 h 09 -> B4Xpage disappears (may be I was using another application)
- 4 minutes later, connection fails
- at 20 h 59 (50 minuts later which could be explained by the fact that I don't use the phone during this time !)), communication restarts and then B4XPage reappears (MQTT is connected)
- 5 seconds later, B4XPage disappears and reappears (MQTT is connected). Why ?
- after the blue line, a new internal command is processed
- then, a new MQTT command (Cmenu) is sent to the broker
BUT the B4XPage does not receive any return from the broker (even my demand)
which is followed by a timeout