Skip to content

Commit

Permalink
Mosquitto brokers demo configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaIannoli committed Nov 3, 2023
1 parent 99e0c07 commit 01b8b5f
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified broker/.DS_Store
Binary file not shown.
Binary file added broker/broker_conf/.DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions broker/broker_conf/broker1/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
port 1990
protocol mqtt
allow_anonymous true


# Websockets

listener 9001
protocol websockets

connection bridgeFrom1To2
address 127.0.0.1:1991
remote_username jam
remote_password password
try_private true
topic bridgeFrom127.0.0.1:9001To127.0.0.1:9002 out 0
topic bridgeFrom127.0.0.1:9002To127.0.0.1:9001 in 0
17 changes: 17 additions & 0 deletions broker/broker_conf/broker2/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
port 1991
protocol mqtt
allow_anonymous true


# Websockets

listener 9002
protocol websockets

connection bridgeFrom2To3
address 127.0.0.1:1992
remote_username jam
remote_password password
try_private true
topic bridgeFrom127.0.0.1:9002To127.0.0.1:9003 out 0
topic bridgeFrom127.0.0.1:9003To127.0.0.1:9002 in 0
18 changes: 18 additions & 0 deletions broker/broker_conf/broker3/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
port 1992
protocol mqtt
allow_anonymous true


# Websockets

listener 9003
protocol websockets

connection bridgeFrom3To1
address 127.0.0.1:1990
remote_username jam
remote_password password
try_private true
topic bridgeFrom127.0.0.1:9003To127.0.0.1:9001 out 0
topic bridgeFrom127.0.0.1:9001To127.0.0.1:9003 in 0

0 comments on commit 01b8b5f

Please sign in to comment.