gateway

package
v3.16.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetBackend

func SetBackend(b Gateway)

SetBackend sets the given gateway backend.

func UpdateDownlinkFrame

func UpdateDownlinkFrame(mode string, df *gw.DownlinkFrame) error

UpdateDownlinkFrame updates the downlink frame for backward compatibility.

Types

type Gateway

type Gateway interface {
	SendTXPacket(gw.DownlinkFrame) error                   // send the given packet to the gateway
	SendGatewayConfigPacket(gw.GatewayConfiguration) error // SendGatewayConfigPacket sends the given GatewayConfigPacket to the gateway.
	RXPacketChan() chan gw.UplinkFrame                     // channel containing the received packets
	StatsPacketChan() chan gw.GatewayStats                 // channel containing the received gateway stats
	DownlinkTXAckChan() chan gw.DownlinkTXAck              // channel containing the downlink tx acknowledgements
	Close() error                                          // close the gateway backend.
}

Gateway is the interface of a gateway backend. A gateway backend is responsible for the communication with the gateway.

func Backend

func Backend() Gateway

Backend returns the gateway backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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