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
Currently every message received by 3.1.1 MQTT client, will have retain flag set to false. Even when it was published with retained flag set to true.
MQTT 3.1.1 spec is not very specific about that, but previosly retain flag was set to whatever value was set in PUB packet.
Currently every message received by 3.1.1 MQTT client, will have
retain
flag set to false. Even when it was published with retained flag set to true.MQTT 3.1.1 spec is not very specific about that, but previosly
retain
flag was set to whatever value was set in PUB packet.This is because of https://github.com/mochi-co/mqtt/blob/0de1d731db5b4b94f580d1441560658303bdab2c/server.go#L788
AFAIK
RetainAsPublished
should be used only for v5 clients and for v3 it should be always set to1
The text was updated successfully, but these errors were encountered: