Using two gateways MQTT
-
Hello!!
As the title I would use for my control Domoticz two Gateway MQTT, being my Etherneth network very well distributed.is it possible to use 2 Gateway MQTT with a Domoticz controller ???
Thank you!!
-
@sindrome73 yes
-
Grazie mille!!
Thanks!!
-
@mfalkvidd How does the system knows which gateway is?
-
I do not understand. Tell me I'm available
-
@gohan I don't know but I guess it does it the same way as it does when using multiple ethernet gateways, multiple serial gateways and/or two different gateways.
-
It's not actually the same because the mqtt broker is only one, the controller can not identify the gateway if they are publishing to same topic, unless there is a way to assign an ID for each gateway. Right?
-
@gohan oh, now I understand. Yes, if you use the same broker you would need to set different topics.
// Set this node's subscribe and publish topic prefix #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out" #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
-
The problem is that domoticz only works with its own fixed topics. It may be worth trying to see if adding a unique sub topic for each gateway, the controller can still recognize the mysensors protocol
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 12 days ago • dpcons 12 days ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
NODs stop responding, but ping works.
Troubleshooting • a day ago • Marcin a day ago -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59