mariolukas / Watterott-CO2-Ampel-Plus-Firmware

Firmware for Watterott CO2 Ampel (Plus Version)
GNU General Public License v3.0
15 stars 13 forks source link

Umstellung auf PubSubClient, MQTT LWT und Minimierung des MQTT Traffics #4

Closed reibuehl closed 3 years ago

reibuehl commented 3 years ago

Changed to PubSubClient MQTT library as it is better documented and has working LWT.

Changed MQTT publishing to publish all values as one JSON string to minimize the number of MQTT transfers from 4 to 1 per cycle to minimize the load on the MQTT server.

Added MQTT Last Will and Testament (LWT) to inform MQTT subscribers if the sensor is connected or disconnected.