Table of Contents

Class GatewayPacket

Namespace
Pamoja.Gateway
Assembly
Pamoja.Gateway.dll

One datagram of the protocol, with the fields its kind carries.

public sealed record GatewayPacket : IEquatable<GatewayPacket>
Inheritance
GatewayPacket
Implements
Inherited Members

Constructors

GatewayPacket(GatewayPacketKind, ushort)

One datagram of the protocol, with the fields its kind carries.

public GatewayPacket(GatewayPacketKind Kind, ushort Token)

Parameters

Kind GatewayPacketKind

Which kind of datagram.

Token ushort

The token that pairs a datagram with its answer.

Properties

GatewayEui

The gateway's identifier, as sixteen hexadecimal digits, for the kinds that carry one.

public string? GatewayEui { get; init; }

Property Value

string

Kind

Which kind of datagram.

public GatewayPacketKind Kind { get; init; }

Property Value

GatewayPacketKind

Packets

The packets a PUSH_DATA forwards.

public IReadOnlyList<GatewayRxpk> Packets { get; init; }

Property Value

IReadOnlyList<GatewayRxpk>

Status

The report a PUSH_DATA carries.

public GatewayStat? Status { get; init; }

Property Value

GatewayStat

Token

The token that pairs a datagram with its answer.

public ushort Token { get; init; }

Property Value

ushort

Transmit

What a PULL_RESP asks the gateway to transmit.

public GatewayTxpk? Transmit { get; init; }

Property Value

GatewayTxpk

TxStatus

What a TX_ACK reports.

public GatewayTxStatus? TxStatus { get; init; }

Property Value

GatewayTxStatus?