rasendubi / arachne

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Protocol Level field is missing in connect packet #14

Closed rasendubi closed 8 years ago

rasendubi commented 8 years ago

From the spec:

The Server MUST respond to the CONNECT Packet with a CONNACK return code 0x01 (unacceptable protocol level) and then disconnect the Client if the Protocol Level is not supported by the Server [MQTT-3.1.2-2].

That means, the Parser should parse the CONNECT packet successfuly and save protocol level. However, there is no field to store protocol level in ConnectPacket.

The scope of the issue is to add the field to ConnectPacket and modify Encoder to properly encode it.

rasendubi commented 8 years ago

Fixed by #17.