Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » how to bridge between two mqtt brokers(configure a bridge connection so that messages published to a mqtt can be able to received by bridged mqtt broker)
how to bridge between two mqtt brokers [message #1785599] Tue, 17 April 2018 11:15
UmaMaheswari P is currently offline UmaMaheswari PFriend
Messages: 1
Registered: April 2018
Junior Member
hi i have mqtt 1.4.15 installed on my friend is having mqtt 3.1.1 installed on his pc,my aim is to configure a bridge between these two so that what ever messages that are published to my mqtt broker should be received by all the clients subscribing to my friends mqtt i configured a file in mosquitto folder with following lines :
# Connection name
connection testing_connection

# Host and port of endpoint (your AWS IoT endpoint)

# Default but you should start the bridge automatically
start_type automatic

# Name of the user used to connect to local Mosquitto Broker
local_clientid abc

# Looks like AWS IoT Broker supports bridges, so we should enable this to for better loop detection
try_private true

# Set the mqtt protocoll to 3.1.1
bridge_protocol_version mqttv311

# AWS IoT Broker will only accept session with cleansession set to true
cleansession true

# AWS IoT Broker will immediately close connections if you try to publish to $SYS, therefore we need to turn off bridge notification (took me a while to find out$
notifications true

# Topic configuration
topic # both 0

and i was getting the following errors
mosquitto version 1.4.15 (build date Sat, 07 Apr 2018 11:14:23 +0100) starting
1523963648: Config loaded from aws_iot_bridge.conf.
1523963648: Opening ipv4 listen socket on port 1883.
1523963648: Opening ipv6 listen socket on port 1883.
1523963648: Connecting bridge testing_connection (
Socket error on client abc, disconnecting

what is this socket error ?
Previous Topic:Eclipse network data usage
Next Topic:MQTT broker disconnection
Goto Forum:

Current Time: Thu Oct 22 16:07:56 GMT 2020

Powered by FUDForum. Page generated in 0.01928 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top