uplink

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectKeyTempl     = "lora:ns:rx:collect:%s"
	CollectLockKeyTempl = "lora:ns:rx:collect:%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 HandleRXPacket

func HandleRXPacket(uplinkFrame gw.UplinkFrame) error

HandleRXPacket handles a single rxpacket.

func HandleRXPackets

func HandleRXPackets(wg *sync.WaitGroup)

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

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