Skip to main content



      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 02:47 Go to next message
Eclipse UserFriend
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 ?
Thanks!
Re: using Mosquitto as a client to VerneMQ. [message #1807188 is a reply to message #1807118] Fri, 24 May 2019 06:19 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 09:50:02 EDT 2025

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

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

Back to the top