Message → Publish
AI-generatedSummary
Publish an MQTT message payload to a specified topic on NETPIE messaging service.
Inputs
- Topic (required) — The MQTT topic to which the message will be published.
- Payload (required) — The message content to send as the payload. Can be plain text or JSON string depending on Content Type option.
- Simplify — Whether to return a simplified response object indicating success rather than the raw API response.
- Options — Optional settings including Timeout (request timeout in milliseconds) and Content Type (either 'text/plain' or 'application/json') to specify how the payload is sent.
Output shape
A single JSON object per input item containing either a simplified publication confirmation or the raw response from NETPIE API.
If Simplify is true (default), the response contains 'published' (boolean), 'topic', and 'result' (string) fields. If false, returns the full raw API response. Errors include status codes and messages. Each input item is processed independently and paired in output.
Examples
Example 1: Publish text to 'led' topic with simplified response
Topic='led', Payload='ledon', Content Type='text/plain', Simplify=true (default). Returns confirmation that message was published.