I want to use Mosquitto as bridge so when I publish my data from my app, to send them locally to my homeautomation in my raspberry but also I want to push my data to my HiveMQ cloud.
I setup Mosquitto on my raspberry as Docker Image
This is my mosquitto.conf file:
# mosquitto.conf
listener 1883
allow_anonymous true
# Bridge configuration to cloud MQTT broker
connection hivemq
address somenumbers.s1.eu.hivemq.cloud:8884
topic my_topic1 both 0
topic my_topic2 both 0
remote_username username
remote_password password
bridge_protocol_version mqttv311
bridge_insecure true
This is the error I’m getting:
1725886666: Connecting bridge hivemq (somenumbers.s1.eu.hivemq.cloud:8884)
1725886666: Client local.name.hivemq closed its connection.
1725886629: Connecting bridge hivemq (somenumbers.s1.eu.hivemq.cloud:8884)
1725886629: Client local.name.hivemq closed its connection.
1725886611: Connecting bridge hivemq (somenumbers.s1.eu.hivemq.cloud:8884)
1725886611: Client local.name.hivemq closed its connection.
1725886491: Connecting bridge hivemq (somenumbers.s1.eu.hivemq.cloud:8884)
1725886491: Client local.name.hivemq closed its connection.
more detailed logs:
1725890893: Bridge local.name.hivemq doing local SUBSCRIBE on topic #
1725890893: Connecting bridge hivemq (somenumbers.s1.eu.hivemq.cloud:8884)
1725890893: Bridge name.hivemq sending CONNECT
1725890903: Client local.name.hivemq closed its connection.