I have about 30 ESP32 nodes publishing to a Mosquitto broker and a dashboard that should show which nodes are alive. At present I guess from the time of the last reading, which is unreliable because some nodes only publish on change.
I have read that the Last Will feature is meant for this, but I do not understand when the broker sends the will, how fast it reacts to a node losing power, and how to make the dashboard show the right state immediately after it starts.




