-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Environment
- OS: Ubuntu 16.04.6 LTS
- Erlang/OTP: 22.2.7
- EMQ: 4.0.4
Description
When I try to connect to EMQX using mosqitto client using MQTT v5, I get an error:
$ mosquitto_sub -d -V mqttv5 -h 192.168.0.1 -p 1883 -t test
Client (null) sending CONNECT
Error: A network protocol error occurred when communicating with the broker.
$ mosquitto_pub -d -V mqttv5 -h 192.168.0.1 -p 1883 -t test -m test_message
Client (null) sending CONNECT
Error: A network protocol error occurred when communicating with the broker.
When using versions 3.1 and 3.1.1, the issue is not observed:
$ mosquitto_pub -d -V mqttv311 -h 192.168.0.1 -p 1883 -t test -m test_message
Client mosq-D8n0wzeaIZCgceT2lw sending CONNECT
Client mosq-D8n0wzeaIZCgceT2lw received CONNACK (0)
Client mosq-D8n0wzeaIZCgceT2lw sending PUBLISH (d0, q0, r0, m1, 'test', ... (12 bytes))
Client mosq-D8n0wzeaIZCgceT2lw sending DISCONNECT
I use mosqitto client version 1.6.9:
$ mosquitto_pub --help | grep -m 1 version
mosquitto_pub version 1.6.9 running on libmosquitto 1.6.9.
$ mosquitto_sub --help | grep -m 1 version
mosquitto_sub version 1.6.9 running on libmosquitto 1.6.9.
The issue is reproduced on the default EMQX configuration as well.