energostack / bisquitt

Bisquitt, a transparent MQTT-SN gateway
Eclipse Public License 2.0
21 stars 3 forks source link

packets1: Fix `WILLTOPICUPD` implementation #52

Closed mprymek closed 1 year ago

mprymek commented 1 year ago

Like in WILLTOPIC, the WILLTOPICUPD packet must not contain Flags if WillMsg length is zero.

The old implementation inserts Flags field into the packet regardless of WillMsg. This PR introduces the right behavior and improved WillTopicUpd tests.