framelog

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUplinkFrameSet

func CreateUplinkFrameSet(rxPacket models.RXPacket) (gw.UplinkFrameSet, error)

CreateUplinkFrameSet creates a UplinkFrameSet.

func GetFrameLogForDevice

func GetFrameLogForDevice(ctx context.Context, p *redis.Pool, 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, p *redis.Pool, gatewayID 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(p *redis.Pool, devEUI lorawan.EUI64, frame gw.DownlinkFrame) error

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

func LogDownlinkFrameForGateway

func LogDownlinkFrameForGateway(p *redis.Pool, frame gw.DownlinkFrame) error

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

func LogUplinkFrameForDevEUI

func LogUplinkFrameForDevEUI(p *redis.Pool, devEUI lorawan.EUI64, frame gw.UplinkFrameSet) error

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

func LogUplinkFrameForGateways

func LogUplinkFrameForGateways(p *redis.Pool, uplinkFrameSet gw.UplinkFrameSet) error

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

Types

type FrameLog

type FrameLog struct {
	UplinkFrame   *gw.UplinkFrameSet
	DownlinkFrame *gw.DownlinkFrame
}

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