Table of Contents

Struct PamojaLorawanHeader

Namespace
Pamoja.Native.Interop
Assembly
Pamoja.Native.dll

What a frame says about itself before any key is involved, mirroring PamojaLorawanHeader in pamoja.h.

public struct PamojaLorawanHeader
Inherited Members

Remarks

IsData is 1 when DevAddr and Fcnt are meaningful, and HasFport when Fport is. Nothing here is authenticated.

Fields

Ack

1 when the frame acknowledges the last confirmed one.

public byte Ack

Field Value

byte

Adr

1 when the frame takes part in adaptive data rate.

public byte Adr

Field Value

byte

Confirmed

1 when the frame asks to be acknowledged.

public byte Confirmed

Field Value

byte

DevAddr

The device address, meaningful only when addressed.

public uint DevAddr

Field Value

uint

FPending

1 when the network has more downlink data waiting.

public byte FPending

Field Value

byte

Fcnt

The low 16 bits of the frame counter.

public ushort Fcnt

Field Value

ushort

FoptsLen

How many bytes of frame options the header carries.

public byte FoptsLen

Field Value

byte

Fport

The port the frame was sent on.

public byte Fport

Field Value

byte

HasFport

1 when the frame carries a port.

public byte HasFport

Field Value

byte

IsData

1 for a data frame, 0 for a join frame.

public byte IsData

Field Value

byte

MessageType

What kind of message the frame is.

public PamojaLorawanMessageType MessageType

Field Value

PamojaLorawanMessageType

PayloadLen

The length of the still-encrypted payload, in bytes.

public nuint PayloadLen

Field Value

nuint