Parser for retain tags - defines MQTT retain flag
This parser handles the retain tag that defines whether MQTT messages should be retained by the broker. It extracts:
Raw content from the retain tag
Parsed retain information or null if parsing fails
// Input: "true"// Output: { retain: true } Copy
// Input: "true"// Output: { retain: true }
// Input: "false"// Output: { retain: false } Copy
// Input: "false"// Output: { retain: false }
// Input: "1" or "yes" or "on"// Output: { retain: true }// Input: "0" or "no" or "off"// Output: { retain: false } Copy
// Input: "1" or "yes" or "on"// Output: { retain: true }// Input: "0" or "no" or "off"// Output: { retain: false }
4.1.0
Parser for retain tags - defines MQTT retain flag
This parser handles the retain tag that defines whether MQTT messages should be retained by the broker. It extracts: