You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when not setting clean-session, the broker may answer a CONNECT with the previous subscriptions as REGISTER message, as specified in MQTT-SN_spec_v1.2.pdf paragraph 6.10.
however, mqtt-sn-sub espects SUBSCRIBE to be immediately followed by SUBACK and dies on any message left in the brokers queue. This will probably happen with a leftover PUBLISH as well.
./mqtt-sn-sub -d -t foo -1 -i blabla -c
Sending CONNECT packet...
waiting for packet...
Received 3 bytes. Type=CONNACK.
CONNACK return code: 0x00
Sending SUBSCRIBE packet...
waiting for packet...
Received 13 bytes. Type=REGISTER.
Was expecting SUBACK packet but received: 0x0a
a
The text was updated successfully, but these errors were encountered:
aep
changed the title
incorrect expectations with non clean session
incorrect in-order expectations with non clean session
Mar 12, 2015
when not setting clean-session, the broker may answer a CONNECT with the previous subscriptions as REGISTER message, as specified in MQTT-SN_spec_v1.2.pdf paragraph 6.10.
however, mqtt-sn-sub espects SUBSCRIBE to be immediately followed by SUBACK and dies on any message left in the brokers queue. This will probably happen with a leftover PUBLISH as well.
a
The text was updated successfully, but these errors were encountered: