Run a dummy master mosquitto on port 1883
mosquitto -v -p 1883
Configure a bridge mosquitto_clinet_broker.conf
connection bridge_01
address 127.0.0.1:1883
topic # out 0
topic # in 0
listener 51883
Run the bridge on port 51883
mosquitto -c .\mosquitto_clinet_broker.conf -v
Subscribe to master
mosquitto_sub -u adel -t '/greetings' -p 1883 -h '127.0.0.1'
Publish to Bridge
mosquitto_pub -u ilies -t '/greetings' -p 51883 -h '127.0.0.1' -m 'hey'