Documentation ¶
Index ¶
- func CreateDownlinkFrame(token uint16, phy lorawan.PHYPayload, txInfo gw.TXInfo) (gw.DownlinkFrame, error)
- func CreateUplinkFrameSet(rxPacket models.RXPacket) (gw.UplinkFrameSet, error)
- 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 gw.DownlinkFrame) error
- func LogDownlinkFrameForGateway(frame gw.DownlinkFrame) error
- func LogUplinkFrameForDevEUI(devEUI lorawan.EUI64, frame gw.UplinkFrameSet) error
- func LogUplinkFrameForGateways(uplinkFrameSet gw.UplinkFrameSet) error
- type FrameLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDownlinkFrame ¶
func CreateDownlinkFrame(token uint16, phy lorawan.PHYPayload, txInfo gw.TXInfo) (gw.DownlinkFrame, error)
CreateDownlinkFrame is a helper until gw.DownlinkFrame is fully in place.
func CreateUplinkFrameSet ¶
func CreateUplinkFrameSet(rxPacket models.RXPacket) (gw.UplinkFrameSet, error)
CreateUplinkFrameSet is a helper until gw.UplinkFrameSet is fully in place.
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 gw.DownlinkFrame) error
LogDownlinkFrameForDevEUI logs the given frame to the device pub-sub key.
func LogDownlinkFrameForGateway ¶
func LogDownlinkFrameForGateway(frame gw.DownlinkFrame) error
LogDownlinkFrameForGateway logs the given frame to the gateway pub-sub key.
func LogUplinkFrameForDevEUI ¶
func LogUplinkFrameForDevEUI(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(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.