eclipse / paho.golang

Go libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConnectProperties in cp_connect.go has a MaximumQOS field that is not part of the MQTT 5 specification

vishnureddy17 opened this issue · comments

The MQTT 5 spec doesn't include a MaximumQOS field in CONNECT properties, but it is included as a field.

MaximumQOS *byte

This ends up as property 36 "Maximum QoS" but that is only valid on CONNACK packets so this looks like a bug.

This also needs to be fixed in properties.go -

PropMaximumQOS: {CONNECT: {}, CONNACK: {}},

should be:

PropMaximumQOS: {CONNACK: {}},