mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

unable to establitsh mqtt broker bridge with AWS broker

Open cah-sachin opened this issue 6 years ago • 3 comments

I am trying to setup Brdige between AWS MQTT broker and my local mosquitto broker with version 1.5.8

I checked private key certificate and rootca by publishing pub message like below those are correct in configuration of mqtt.

mosquitto_pub --cafile rootca.crt --cert certificate_1.crt --key private_pem_1.key -h -p 443 -q 1 -d -t "/testping" -i 23234 -m "Hello World" Client 23234 sending CONNECT Client 23234 received CONNACK (0) Client 23234 sending PUBLISH (d0, q1, r0, m1, 'tfc/GT_QPCR_SYSTEM/ca3104a9-5242-11e9-8661-0242ac11000520/ping', ... (11 bytes)) Client 23234 received PUBACK (Mid: 1) Client 23234 sending DISCONNECT

when i put same configuration for broker in mosquitto configuration file for broker, then it does not work. Any clue here ?

cah-sachin avatar Mar 31 '19 23:03 cah-sachin

I've seen this when the client id is duplicated. Bridge clients must have a unique client ID, set with "connection" or "remote_clientid" options. .

Panometric avatar Apr 08 '19 17:04 Panometric

Given that they're setting the client id specifically, that's a good bet.

karlp avatar Apr 08 '19 21:04 karlp

@cah-sachin did you figure out the problem? Can this issue be closed?

ckrey avatar Oct 15 '24 07:10 ckrey