I am sending sensor value to Ignition MQTT Engine. The interval is set as 5 sec inside the sensor.
I want that Ignition declares the Tag Quality as “Bad” when no data came to MQTT Engine for more than 1 minute.
When I power off the sensor, Ignition still counts the Tag Quality as “Good” and showing it’s last value and overlay is not being shown which is misleading.
Try linking you client to the topic in the broker first. This is done by defining a last will message. When the connection dies you will have to set the specific topic to bad. This you do in your Last Will testament.
Indeed. If @maqsudbd takes the time to import the c libraries into the arduino environment. (Which is a bit of a hassle as I remember it.) Then it’s all magic. You don’t have to subscribe to anything. Just power up nultiple ESPs with exactly the same code and you are done done. (if you generate node name based on serial fex)