Uploaded image for project: 'OASIS Message Queuing Telemetry Transport (MQTT) TC'
  1. OASIS Message Queuing Telemetry Transport (MQTT) TC
  2. MQTT-545

Remove retained messages by sending QoS 0 0 length publish

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Applied
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: MQTT-SN-1.2
    • Fix Version/s: wd04
    • Component/s: MQTT-SN
    • Labels:
      None
    • Proposal:
      Hide

      New functional description section.

      6.15 - Retained Messages
      If the RETAIN flag is set to 1 in a PUBLISH packet sent by a Client to a Server, the Server MUST replace any existing retained message for this topic and store the Publish Data, so that it can be delivered to future subscribers whose subscriptions match its Topic Name. If the Publish Data contains zero bytes it is processed normally by the Server but any retained message with the same topic name MUST be removed and any future subscribers for the topic will not receive a retained message. A retained message with Publish Data containing zero bytes MUST NOT be stored as a retained message on the Server

      Show
      New functional description section. 6.15 - Retained Messages If the RETAIN flag is set to 1 in a PUBLISH packet sent by a Client to a Server, the Server MUST replace any existing retained message for this topic and store the Publish Data, so that it can be delivered to future subscribers whose subscriptions match its Topic Name. If the Publish Data contains zero bytes it is processed normally by the Server but any retained message with the same topic name MUST be removed and any future subscribers for the topic will not receive a retained message. A retained message with Publish Data containing zero bytes MUST NOT be stored as a retained message on the Server

      Description

      Conform to the behaviour in MQTT 3.1.1 and 5.0

        Attachments

          Activity

            People

            • Assignee:
              simon.johnson Simon Johnson [X] (Inactive)
              Reporter:
              ian.craggs Ian Craggs
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: