Search code examples
mqttmosquittobridging

Mosquitto-Dynamic Bridging


I wanted to know if any of you have tried this - https://github.com/eclipse/mosquitto/pull/535/files Mosquitto is working fine but what payload to be sent with this topic? - $SYS/broker/bridge/new I am unable to implement dynamic bridging, please help me out.


Solution

  • The message should be the same as the bridge configuration you would include in the mosquitto.conf file. You can see where the tool builds the message in the patch linked to the pull request here

    connection [name]
    address [address]:[port]
    topic [pattern] [direction] [qos] [local prefix] [remote prefix]
    

    But by the look of things this functionality has not been merged into the release branch of mosquitto. The last comment on the linked pull request implies that it only works up to 1.5.4 and not on the latest 1.6.x code base.