Parser for MQTT tags - defines MQTT operation type (publish or subscribe)
This parser handles the main MQTT tag that defines MQTT endpoints. It extracts:
Raw content from the MQTT tag
Parsed MQTT information or null if parsing fails
// Input: "publish Send device telemetry"// Output: { type: "publish", title: "Send device telemetry" } Copy
// Input: "publish Send device telemetry"// Output: { type: "publish", title: "Send device telemetry" }
// Input: "subscribe Receive device commands"// Output: { type: "subscribe", title: "Receive device commands" } Copy
// Input: "subscribe Receive device commands"// Output: { type: "subscribe", title: "Receive device commands" }
// Input: "publish"// Output: { type: "publish", title: "" } Copy
// Input: "publish"// Output: { type: "publish", title: "" }
4.1.0
Parser for MQTT tags - defines MQTT operation type (publish or subscribe)
This parser handles the main MQTT tag that defines MQTT endpoints. It extracts: