eclipse / mosquitto.rsmb

Mosquitto rsmb
85 stars 42 forks source link

sending topic-id in puback message as per v1.2 spec #41

Open nandemonogatari opened 1 year ago

nandemonogatari commented 1 year ago

Not sure if i'm missing something, but saw that the puback message always sends 00 00 in the topicId field and this seemed like a quick working fix.

Spec v1.2 of mqtt-sn (which i believe is the last published one if i'm not mistaken, since i've only found drafts for newer versions so far) says that TopicId should have the same value as the one contained in the corresponding PUBLISH message, which with this fix it now is.