LV-MQTT-Broker
LV-MQTT-Broker copied to clipboard
[MQTT-3.3.1-7] QoS and retain flag relationship
If the Server receives a QoS 0 message with the RETAIN flag set to 1 it MUST discard any message previously retained for that topic. It SHOULD store the new QoS 0 message as the new retained message for that topic, but MAY choose to discard it at any time - if this happens there will be no retained message for that topic.