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!!
-
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!!
-
Grazie mille!!
Thanks!!
-
I do not understand. Tell me I'm available
-
@mfalkvidd How does the system knows which gateway is?
-
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"