Im running mosquitto broker on a raspberry pi (version below). The mc-Gateway is trying to connect but in Pi logs Im seeing: Invalid protocol "MQTT" in CONNECT from 192.168.208.134 (this IP is the mc-gateway as expected).
Taking a snoop I can see that mc-gateway is using MQTT Protocol version=4
MQ Telemetry Transport Protocol
Connect Command
0001 0000 = Header Flags: 0x10 (Connect Command)
0001 .... = Message Type: Connect Command (1)
.... 0... = DUP Flag: Not set
.... .00. = QOS Level: Fire and Forget (0)
.... ...0 = Retain: Not set
Msg Len: 24
Protocol Name: MQTT
Version: 4
1100 0010 = Connect Flags: 0xc2
1... .... = User Name Flag: Set
.1.. .... = Password Flag: Set
..0. .... = Will Retain: Not set
...0 0... = QOS Level: Fire and Forget (0)
.... .0.. = Will Flag: Not set
.... ..1. = Clean Session Flag: Set
.... ...0 = (Reserved): Not set
Keep Alive: 20
Client ID: 00010F69
User Name:
Password:
I think the client on my Pi can only use version 3. Is there a way to change it on the mc-gateway to version 3 ?
Mosquitto broker on Pi:
apt-cache search mosquitto
libmosquitto0 - MQTT version 3.1 client library
libmosquitto0-dev - MQTT version 3.1 client library, development files
libmosquittopp0 - MQTT version 3.1 client C++ library
libmosquittopp0-dev - MQTT version 3.1 client C++ library, development files
mosquitto - MQTT version 3.1 compatible message broker
mosquitto-clients - Mosquitto command line MQTT clients
python-mosquitto - MQTT version 3.1 client library, python bindings
thanks, Tony