uplink

package
v3.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectKeyTempl     = "lora:ns:rx:collect:%s:%s"
	CollectLockKeyTempl = "lora:ns:rx:collect:%s:%s:lock"
)

Templates used for generating Redis keys

Variables

This section is empty.

Functions

func HandleDownlinkTXAcks

func HandleDownlinkTXAcks(wg *sync.WaitGroup)

HandleDownlinkTXAcks consumes received downlink tx acknowledgements from the gateway.

func HandleUplinkFrame

func HandleUplinkFrame(ctx context.Context, uplinkFrame gw.UplinkFrame) error

HandleUplinkFrame handles a single uplink frame.

func HandleUplinkFrames

func HandleUplinkFrames(wg *sync.WaitGroup)

HandleUplinkFrames consumes received packets by the gateway and handles them in a separate go-routine. Errors are logged.

func Setup

func Setup(conf config.Config) error

Setup configures the package.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents a server listening for uplink packets.

func NewServer

func NewServer() *Server

NewServer creates a new server.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop closes the gateway backend and waits for the server to complete the pending packets.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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