@hrefcl/apidoc - v4.0.5
    Preparing search index...
    • Parser for qos tags - defines MQTT Quality of Service level

      This parser handles the qos tag that defines MQTT QoS levels. It extracts:

      • QoS level (0, 1, or 2)
      • Validates QoS value is within allowed range

      Parameters

      • content: string

        Raw content from the qos tag

      Returns { qos: number }

      Parsed QoS information or null if parsing fails

      // Input: "0"
      // Output: { qos: 0 }
      // Input: "1"
      // Output: { qos: 1 }
      // Input: "2"
      // Output: { qos: 2 }

      4.1.0