Actions76
- Advert Actions
- Channel Actions
- Contact Actions
- Device Actions
- Export Private Key
- Factory Reset
- Get Allowed Repeat Frequencies
- Get Auto Add Config
- Get Battery Voltage
- Get Custom Variables
- Get Device Info
- Get Device Time
- Get Radio Parameters
- Get Self Info
- Get Self Telemetry
- Get Stats
- Get Tuning Parameters
- Reboot
- Set Advert Name
- Set Auto Add Config
- Set Custom Variable
- Set Device Pin
- Set Device Time
- Set Other Parameters
- Set Path Hash Mode
- Set Radio Parameters
- Set Tuning Parameters
- Sign Data
- Sync Device Time
- Diagnostic Actions
- Flood Scope Actions
- Message Actions
- Repeater Actions
- Utility Actions
Utility → Encode Channel Datagram
AI-generatedSummary
Encode a channel datagram into a MeshCore packet frame. Provide the channel secret, an application-defined uint16 data type, and datagram bytes as hex; choose the path hash size to match the mesh so repeaters interpret the route correctly.
Inputs
- Channel Secret (required) — The 16-byte channel secret as hex, obtained from Channel → Get Channel.
- Data Type (required) — Application-defined datagram type from 0 to 65535 (uint16).
- Data (required) — Datagram payload bytes as hex.
- Path Hash Size — Bytes per hop: 1, 2, or 3. Set this to the mesh's path hash size, available as
pathHashSizefrom Device → Get Device Info.
Output shape
A single item containing the encoded packet frame.
This operation encodes the datagram; it does not send it to the mesh.