Add or update a channel
set_channelConfigure a channel slot on the connected node. Omit the secret to generate a random private channel, or omit the index to use the next free slot. Returns the channel's key for sharing.
Instructions
Configure a channel slot on the connected node. Omit secret to generate a random private channel; omit index to use the next free slot (so a plain add won't overwrite an existing channel). Returns the channel's key so you can share it. List channels via the meshcore://channels resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the channel name | |
| secret | No | 16-byte key as 32 hex chars; omit to generate a random private channel | |
| index | No | channel slot to write; omit to use the next free slot |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | the channel slot the channel was written to | |
| name | Yes | ||
| secret | Yes | 16-byte channel key as 32 hex chars — share this for others to join |