I was trying creating a bridge between the cloud broker (io.adafruit) and mosquitto broker which runs on my Raspberry Pi.
I have successfully tested the local mqtt connection whereas connecting to a cloud broker, I am unable to publish or subscribe to any topic.
I have made the following changes to mosquitto.conf file
connection adafruit
address io.adafruit.com:1883
remote_username xxxxxx
remote_password xxxxxx
start_type automatic
bridge_protocol_version mqttv311
notifications false
try_private true
bridge_insecure false
cleansession false
topic # both 0
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
Logs during subscription using command mosquitto_sub -d -t mytopic
Client mosqsub|4306-raspberryp sending CONNECT
Client mosqsub|4306-raspberryp received CONNACK (0)
Client mosqsub|4306-raspberryp sending SUBSCRIBE (Mid: 1, Topic: mytopic, QoS: 0)
Client mosqsub|4306-raspberryp received SUBACK
Subscribed (mid: 1): 0
Logs during subscription using command mosquitto_pub -d -t mytopic -m 'Hello'
Client mosqpub|4333-raspberryp sending CONNECT
Client mosqpub|4333-raspberryp received CONNACK (0)
Client mosqpub|4333-raspberryp sending PUBLISH (d0, q0, r0, m1, 'mytopic', ... (5 bytes))
Client mosqpub|4333-raspberryp sending DISCONNECT
Please suggest where I am going wrong.