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 Path Return
AI-generatedSummary
Encodes a MeshCore returned-path packet for a recipient, using the sender’s identity key to derive the shared secret and encrypt the route payload.
Inputs
- Identity Private Key (required) — The sending identity’s 64-byte private key, as hex.
- Recipient Public Key (required) — The recipient’s 32-byte public key, as hex.
- Returned Path — Route path-hash bytes as hex. Its length must match the hop count and selected hash size.
- Extra Type — A type byte from 0 to 15 for the extra payload appended after the route; defaults to 0.
- Extra — Extra bytes as hex, appended after the route. When empty, the encoder uses the firmware convention of a 0xFF filler followed by four bytes.
- Path Hash Size — Bytes per hop: 1, 2, or 3. Must match the mesh’s setting; defaults to 1.
Output shape
A single item containing the encoded packet data.
The operation encodes the packet; it does not send it. The provided source signatures do not show the exact output field names or representation.