eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.98k stars 2.39k forks source link

Socket error on client connection to cayenne dashboard via mqtt bridge #1445

Open winnieXY opened 5 years ago

winnieXY commented 5 years ago

Hello, I've played around with the mqtt bridge settings a bit, however found no working configuration in order to get my cayenne messages from loraserver (and mosquitto) bridged to the cayenne dashboard.

Here is my (last) configuration:

connection cayenne address mqtt.mydevices.com:1883 clientid xxxx remote_username xxxx remote_password xxxx try_private false start_type automatic keepalive_interval 100 cleansession false notifications false bridge_attempt_unsubscribe false log_type all topic application/1/device/abc/rx out 0

mqtt connects first and after the first publish to the cayenne mqtt the connection is aborted with this error message:

1570019249: Received PUBLISH from abc (d0, q0, r0, m0, 'application/1/device/abc/rx', ... (355 bytes)) 1570019249: Sending PUBLISH to local.xxxx (d0, q0, r0, m0, 'application/1/device/abc/rx', ... (355 bytes)) 1570019249: Sending PUBLISH to mqtt-explorer-b85f4110 (d0, q0, r0, m0, 'application/1/device/abc/rx', ... (355 bytes)) 1570019249: Socket error on client local.xxxx, disconnecting.

Any ideas what is wrong with my configuration? Tested with cleansession/notifications/try_private true&false settings

With best regards Patrick

attilioscot commented 4 years ago

I used to have the same error message from the beebotte.com MQTT gateway, it was due to a wrong version number being sent: look at my pull request in "fixes"