06-29-2017, 10:34 AM
Is there any way of setting the retain bit on topics published to an MQTT broker?
Up to now I've mostly been using my monitors just for logging but with MQTTDash on my phone it's nice to be able to have a quick glance at the temperatures, etc, but a bit tedious to wait up to 2 minutes for a fresh update. I've changed my logging code to ignore retained messages and set some other scripts which publish other information (power consumption and temperatures from some 1-wire sensors) to set the retain bit which works well with MQTTDash. Be nice to do the same with the vAir sensors.
Up to now I've mostly been using my monitors just for logging but with MQTTDash on my phone it's nice to be able to have a quick glance at the temperatures, etc, but a bit tedious to wait up to 2 minutes for a fresh update. I've changed my logging code to ignore retained messages and set some other scripts which publish other information (power consumption and temperatures from some 1-wire sensors) to set the retain bit which works well with MQTTDash. Be nice to do the same with the vAir sensors.