Skip to main content

Module codec

Module codec 

Source
Expand description

Wire-format codec for LoRaWAN packets.

Two halves to the API:

All wire bytes are little-endian; struct fields display in big-endian order. The codec reverses bytes for you on both parse and serialise.

Structs§

Data
Fields of a Data message (confirmed or unconfirmed, uplink or downlink).
JoinAccept
Fields of a Join Accept (plaintext, after decrypt).
JoinRequest
Fields of an OTAA Join Request.
LoraPacket
A LoRaWAN PHYPayload, parsed into structured fields.
LoraPacketBuilder
Fluent builder for assembling a LoraPacket field by field.

Enums§

Payload
Discriminated union over the five LoRaWAN message variants.
RejoinRequest
Rejoin Request body (LoRaWAN 1.1).