Hi, need help for best way to properly “close” or otherwise turn off widget indicators in my IOS (latest version) mobile app. Specifically, I have an LED widget which indicates GPS “locK” when lit. Works well to show GPS status when the app is running, but I cannot seem to find a way to turn it off upon Blynk disconnection. This is important since I don’t want to mislead a user that the GPS is active when there is no Blynk connection. Maybe a connection lifecycle issue or solution?
Here is the code I am attempting to use:
BLYNK_CONNECTED() {
...
Blynk.virtualWrite(V69, 0); // Initially turn off GPS LOCK LED
}
...
BLYNK_DISCONNECTED() {
Blynk.virtualWrite(V69, 0); // turn off GPS LOCK LED
}
Thanks!