OpenSprinkler / OpenSprinkler-Firmware

OpenSprinkler Unified Firmware for OpenSprinkler, OpenSprinkler Pi, and OpenSprinkler Beagle.
http://www.opensprinkler.com
GNU General Public License v3.0
475 stars 286 forks source link

Mqtt multi device #238

Closed repa6 closed 4 months ago

repa6 commented 1 year ago

Hello Ray!

This PR addresses changes in MQTT topic path. The changes help users with more controllers to distinguish them. Each device gets its own mac address into the MQTT topic path.

After modification the MQTT topic looks like: 328294096_3332586880335871_5334181142344244116_n

repa6 commented 1 year ago

@rayshobby , could you please take a look. Any suggestions are welcome to this topic. I have some friends suffering with multiple devices from the non-unique topic.

rayshobby commented 4 months ago

Thanks for the PR. This has been addressed in PR #288. We used a slightly different method, which allows the user to specify a custom publishing topic. It can be the MQTT ID as you used, or it can be anything else.