MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Utility → Encode Multipart

AI-generated

Summary

Wraps a hex payload in a MeshCore multipart payload, then encodes it as a packet using the selected path hash size.

Inputs

  • Inner Payload Type (required) — Firmware PAYLOAD_TYPE_* value for the wrapped payload (0–15); the default is 3 (ACK).
  • Remaining Parts — Count of packets in the set still to be sent, packed into a 4-bit value; defaults to 0.
  • Inner Payload (required) — Hex bytes of the payload to wrap.
  • Path Hash Size — Bytes per hop for the packet path: 1, 2, or 3. Choose the mesh's configured value, available as pathHashSize from Device → Get Device Info; defaults to 1.

Output shape

A single encoded packet result.

The operation constructs a multipart payload from the type, remaining-parts count, and inner payload, then passes it through the shared packet encoder. The supplied properties do not specify the exact output fields or representation.

Links

Discussion