Documentation ¶
Index ¶
- func GetFrameLogForDevice(ctx context.Context, devEUI lorawan.EUI64, frameLogChan chan FrameLog) error
- func GetFrameLogForGateway(ctx context.Context, mac lorawan.EUI64, frameLogChan chan FrameLog) error
- func LogDownlinkFrameForDevEUI(devEUI lorawan.EUI64, frame DownlinkFrameLog) error
- func LogDownlinkFrameForGateway(frame DownlinkFrameLog) error
- func LogUplinkFrameForDevEUI(devEUI lorawan.EUI64, rxPacket models.RXPacket) error
- func LogUplinkFrameForGateways(rxPacket models.RXPacket) error
- type DownlinkFrameLog
- type FrameLog
- type UplinkFrameLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFrameLogForDevice ¶
func GetFrameLogForDevice(ctx context.Context, devEUI lorawan.EUI64, frameLogChan chan FrameLog) error
GetFrameLogForDevice subscribes to the uplink and downlink frame logs for the given device and sends this to the given channel.
func GetFrameLogForGateway ¶
func GetFrameLogForGateway(ctx context.Context, mac lorawan.EUI64, frameLogChan chan FrameLog) error
GetFrameLogForGateway subscribes to the uplink and downlink frame logs for the given gateway and sends this to the given channel.
func LogDownlinkFrameForDevEUI ¶
func LogDownlinkFrameForDevEUI(devEUI lorawan.EUI64, frame DownlinkFrameLog) error
LogDownlinkFrameForDevEUI logs the given frame to the device pub-sub key.
func LogDownlinkFrameForGateway ¶
func LogDownlinkFrameForGateway(frame DownlinkFrameLog) error
LogDownlinkFrameForGateway logs the given frame to the gateway pub-sub key.
func LogUplinkFrameForDevEUI ¶
LogUplinkFrameForDevEUI logs the given frame to the pub-sub key of the given DevEUI.
func LogUplinkFrameForGateways ¶
LogUplinkFrameForGateways logs the given frame to all the gateway pub-sub keys.
Types ¶
type DownlinkFrameLog ¶
type DownlinkFrameLog struct { PHYPayload lorawan.PHYPayload TXInfo gw.TXInfo }
DownlinkFrameLog contains the details of a downlink frame.
type FrameLog ¶
type FrameLog struct { UplinkFrame *UplinkFrameLog DownlinkFrame *DownlinkFrameLog }
FrameLog contains either an uplink or downlink frame.
type UplinkFrameLog ¶
type UplinkFrameLog struct { PHYPayload lorawan.PHYPayload TXInfo models.TXInfo RXInfoSet []models.RXInfo }
UplinkFrameLog contains the details of an uplink frame.