Split subscripe/publish MQTT topic
Fix fix avoids loopback of messages from controller back to gateway.
This commit is contained in:
@@ -72,8 +72,9 @@
|
||||
|
||||
#define MY_GATEWAY_MQTT_CLIENT
|
||||
|
||||
// Set this nodes topic prefix
|
||||
#define MY_MQTT_TOPIC_PREFIX "mygateway"
|
||||
// Set this nodes subscripe and publish topic prefix
|
||||
#define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
|
||||
#define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
|
||||
|
||||
// Set MQTT client id
|
||||
#define MY_MQTT_CLIENT_ID "mysensors-1"
|
||||
|
||||
Reference in New Issue
Block a user