I noticed that when the arduino board either malfunctions, or is dead or loses power, the values in my IOT dashboard remain where they were last. Is there a way to change the variable values upon such a failure than tokeep showing the last known values? I want to do this so I know when a device is properly reporting to the dashboard, and if the values in the dashboard are mere numbers with no real connection. Thanks
sounds like your dashboard must be a separate device receiving data from an IoT device.
what if the dashboard cleared its display if it hasn't received any data after some timeout period or if there's no heartbeat msgs between the two devices?
How do I make the dashboard clear the data? The sketch is on my ESP board. Is there a way to program the dashboard? That is exactly what I am looking for. Currently the program is only on the ESP board, and if the board is somehow lost/disconnected, the dashboard does not know what to do. Unless there is a way to program the dashboard itself? Thanks for helping
Hello, dashboard widgets show the last known value of the linked variables.
If you need to know the last time a value has been sent from a thing to dashboard, you can add a Time variable to your sketch and do
t = ArduinoCloud.getLocalTime()
in your sketch loop. Then you can attach this variable to a "Time Picker" widget. This way you will know the last time the board was pushing data.
Hope this helps.
Thank you. Yes that is exactly what I was trying to do and solved my problem.