@hrefcl/apidoc - v4.0.5
    Preparing search index...
    • Parser for MQTT tags - defines MQTT operation type (publish or subscribe)

      This parser handles the main MQTT tag that defines MQTT endpoints. It extracts:

      • Operation type (publish or subscribe)
      • Optional description

      Parameters

      • content: string

        Raw content from the MQTT tag

      Returns { type: string; title: string }

      Parsed MQTT information or null if parsing fails

      // Input: "publish Send device telemetry"
      // Output: { type: "publish", title: "Send device telemetry" }
      // Input: "subscribe Receive device commands"
      // Output: { type: "subscribe", title: "Receive device commands" }
      // Input: "publish"
      // Output: { type: "publish", title: "" }

      4.1.0