Close App feedback
-
Hello,
I put a button to close the Gui-O App and with this information I inhibit the microcontroller on my device from sending unnecessary data to the Mqtt server, it works fine
@quitappBut, if the User closes the App in the usual way, how know my device that the App was closed, in order to take the same action?
Anyone a idea?
Regards -
@sato
Hello,you could for example create s sort of watchdog using |RTC component. The GUI-O app will periodically send the time to your microcontroller. There you could reset some sort of internal timer. Note that this could incur additional costs if you are using some sort of data plan (instead of WiFi).
If you are using MQTT, there is another option (which is not yet fully supported) - last will testament. If one client goes offline, the broker can notify the subscribed clients, which can react accordingly.
Best regards,
kl3m3n -
Hello Klemen,
"If you are using MQTT, there is another option (which is not yet fully supported) - last will testament. If one client goes offline, the broker can notify the subscribed clients, which can react accordingly."
This functionality would be great.
So I wait, please inform me when it is integratedThank you
Best regards