Table of Contents

Struct PamojaGatewayNetworkEvent

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

What a forwarded packet turned out to be, mirroring PamojaGatewayNetworkEvent in pamoja.h.

public struct PamojaGatewayNetworkEvent
Inherited Members

Fields

Accept

The packet that carries the accept, for a join.

public PamojaGatewayTxpk Accept

Field Value

PamojaGatewayTxpk

Confirmed

1 when the device asked to be acknowledged.

public byte Confirmed

Field Value

byte

DevAddr

The address granted, or the address a frame claimed.

public uint DevAddr

Field Value

uint

DevEui

The device that joined, for a join.

public PamojaEui DevEui

Field Value

PamojaEui

Fcnt

The counter the frame carried, reconstructed to its full width, for data.

public uint Fcnt

Field Value

uint

Fport

The port the frame was sent on, for data on a port.

public byte Fport

Field Value

byte

HasFport

1 when the frame carried a port at all.

public byte HasFport

Field Value

byte

Len

How many bytes were written into the caller buffer.

public nuint Len

Field Value

nuint

Outcome

Which of the three this was: joined, data, or foreign.

public byte Outcome

Field Value

byte

RelayDataRate

The data rate it arrived at.

public byte RelayDataRate

Field Value

byte

RelayDevAddr

The relay that forwarded it.

public uint RelayDevAddr

Field Value

uint

RelayFrequencyHz

The frequency the uplink arrived on, in hertz.

public uint RelayFrequencyHz

Field Value

uint

RelayRssiDbm

What the relay heard of the uplink, in dBm.

public short RelayRssiDbm

Field Value

short

RelaySnrDb

Its signal-to-noise ratio, in dB.

public sbyte RelaySnrDb

Field Value

sbyte

RelayWorChannel

The WOR channel the device woke the relay on.

public byte RelayWorChannel

Field Value

byte

Relayed

1 when a relay forwarded this uplink.

public byte Relayed

Field Value

byte

Slot

Where an answer goes, for a join or for data.

public PamojaGatewayNetworkSlot Slot

Field Value

PamojaGatewayNetworkSlot

Truncated

1 when the payload was longer than the buffer, in which case nothing was written.

public byte Truncated

Field Value

byte