MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Utility → Encode Raw Custom

AI-generated

Summary

Encodes a raw custom packet frame from the supplied hex payload and routing settings. Set the route type and, for a direct route, provide the hop path using the mesh’s path hash size.

Inputs

  • Payload (required) — Hex packet payload, used as given.
  • Route Type — Select Flood, Direct, Transport Flood, or Transport Direct; defaults to Flood.
  • Path — Hex path-hash bytes in hop order. Leave empty for a zero-hop packet; the path length must be divisible by the selected path hash size.
  • Path Hash Size — Bytes per hop (1, 2, or 3); defaults to 1. Match the mesh’s pathHashSize, available from Utility → Get Device Info.

Output shape

A single item containing the encoded frame and payload metadata.

The implementation encodes the frame locally; it does not send the packet to a device.

Links

Discussion