Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » using Mosquitto as a client to VerneMQ.(error 'unknown_protocol_version')
using Mosquitto as a client to VerneMQ. [message #1807118] Thu, 23 May 2019 06:47 Go to next message
Andrii Shyshka is currently offline Andrii ShyshkaFriend
Messages: 1
Registered: May 2019
Junior Member
Hi there!
I am trying use Mosquitto as a client to VerneMQ. Mosquitto setup as bridge for local connection on localhost and connecting to VerneMQ with parameters
```connection bridge-to-vernemq
address vernemq:1883
topic # out 2
topic # in 2 sender/receiver/ sender/receiver/

bridge_protocol_version mqttv311
cleansession false
notifications true
keepalive_interval 29
idle_timeout 90

remote_username username
remote_password userpasswd```

but every time i see error message on vernemq like this

```2019-05-22 16:30:21.187 [debug] <0.1005.0>@vmq_ranch:handle_message:210 [tcp] parse error 'unknown_protocol_version' for data: <<......>> and parser state: <<>>
2019-05-22 16:30:21.187 [warning] <0.1005.0>@vmq_ranch:teardown:143 session stopped abnormally due to 'unknown_protocol_version'```

Maybe, vernemq not allow to work as mqqt bridge receiver ? Can anybody help me with this setup ?
Re: using Mosquitto as a client to VerneMQ. [message #1807188 is a reply to message #1807118] Fri, 24 May 2019 10:19 Go to previous message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 76
Registered: March 2013
This is from the Mosquitto configuration documentation:

try_private [ true | false ]
If try_private is set to true, the bridge will attempt to indicate to the remote broker that it is a bridge not an ordinary client. If successful, this means that loop detection will be more effective and that retained messages will be propagated correctly. Not all brokers support this feature so it may be necessary to set try_private to false if your bridge does not connect properly.

Defaults to true.

Without this setting, the bridge is a perfectly normal MQTT client, so should work to any MQTT server.
Previous Topic:Mosquitto SSL/TLS extension MFLN
Next Topic:Bridge error - connection refused / socket error on client
Goto Forum:

Current Time: Fri Dec 04 03:18:47 GMT 2020

Powered by FUDForum. Page generated in 0.01546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top