framelog

package
v3.0.0-...-0efb78a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUplinkFrameLog

func CreateUplinkFrameLog(rxPacket models.RXPacket) (ns.UplinkFrameLog, error)

CreateUplinkFrameLog creates a UplinkFrameLog.

func GetFrameLogForDevice

func GetFrameLogForDevice(ctx context.Context, devEUI lorawan.EUI64, frameLogChan chan FrameLog) error

GetFrameLogForDevice subscribes to the uplink / downlink frame logs stream for the given DevEUI.

func GetFrameLogForGateway

func GetFrameLogForGateway(ctx context.Context, gatewayID lorawan.EUI64, frameLogChan chan FrameLog) error

GetFrameLogForGateway subscribes to the uplink / downlink frame logs stream for the given GatewayID.

func LogDownlinkFrameForDevEUI

func LogDownlinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.DownlinkFrameLog) error

LogDownlinkFrameForDevEUI logs the given frame to the device pub-sub key.

func LogDownlinkFrameForGateway

func LogDownlinkFrameForGateway(ctx context.Context, frame ns.DownlinkFrameLog) error

LogDownlinkFrameForGateway logs the given frame to the gateway pub-sub key.

func LogUplinkFrameForDevEUI

func LogUplinkFrameForDevEUI(ctx context.Context, devEUI lorawan.EUI64, frame ns.UplinkFrameLog) error

LogUplinkFrameForDevEUI logs the given frame to the pub-sub key of the given DevEUI.

func LogUplinkFrameForGateways

func LogUplinkFrameForGateways(ctx context.Context, frame ns.UplinkFrameLog) error

LogUplinkFrameForGateways logs the given frame to all the gateway pub-sub keys.

Types

type FrameLog

type FrameLog struct {
	UplinkFrame   *ns.UplinkFrameLog
	DownlinkFrame *ns.DownlinkFrameLog
}

FrameLog contains either an uplink or downlink frame.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL