mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-09-01 10:18:58 +00:00
24 lines
645 B
Plaintext
24 lines
645 B
Plaintext
---
|
|
title: Publish to Pub/Sub
|
|
sidebar:
|
|
label: Publish
|
|
order: 1
|
|
---
|
|
import SchemaInfo from '../../../../components/SchemaInfo.astro';
|
|
|
|
This processor will publish the incoming payload to a module that implements the `PubSubModule` interface.
|
|
This processor will return an error if any of the required parameters are missing or if the parameters are of the wrong type.
|
|
The payload is unchanged so whatever is received by this payload is output unless any errors are encountered.
|
|
|
|
<SchemaInfo type="processor" id="pubsub.publish"/>
|
|
|
|
### Example
|
|
|
|
```yaml
|
|
- id: publish
|
|
type: pubsub.publish
|
|
params:
|
|
module: mqtt-out
|
|
topic: "test"
|
|
```
|