martenjacobs / py-otgw-mqtt

Python OTGW MQTT bridge
MIT License
9 stars 16 forks source link

Make 'online' message retained again #8

Closed lennardk closed 5 years ago

lennardk commented 5 years ago

When a consumer starts after py-otgw-mqtt, it previously received the last-will 'offline' message from the top level topic, even while py-otgw-mqtt is still running.

Behavior observed and change tested on mosquitto 1.4.10-3+deb9u2 from Debian

Changing the 'offline' message to match the setting (and deleting the retained will) works as well, but I assume it was left hardcoded at True intentionally.