RPC Bridge
EMQ X bridges and forwards MQTT messages to remote EMQ X:
Config file for RPC bridge plugin: etc/plugins/emqx_bridge_mqtt.conf
Configure Broker Address for RPC Bridge
bridge.mqtt.emqx.address = emqx2@192.168.1.2
Configure Topics RPC Bridge Forwards and Subscribes
## Mountpoint of the bridge
bridge.mqtt.emqx.mountpoint = bridge/emqx1/${node}/
## Forward message topics
bridge.mqtt.emqx.forwards = topic1/#,topic2/#
Mountpoint: Mountpoint is used to prefix of topic when forwarding a message, this option must be used with forwards
. Forwards the message whose topic is “sensor1/hello”, its topic will change to “<bridge/aws/emqx1@192.168.1.1/sensor1/hello>” when it reaches the remote node.
Forwards: Messages forwarded to forwards
specified by local EMQ X are forwarded to the remote EMQ X.
Bridge CLI Command
CLI of RPC bridge is used in the same way as the MQTT bridge.