semtech

package
v2.7.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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Backend implements a Semtech packet-forwarder gateway backend.

func NewBackend

func NewBackend(bind string, onNew, onDelete func(lorawan.EUI64) error, configurations []PFConfiguration) (*Backend, error)

NewBackend creates a new backend.

func (*Backend) ApplyConfiguration

func (b *Backend) ApplyConfiguration(config gw.GatewayConfiguration) error

ApplyConfiguration applies the given configuration to the gateway (packet-forwarder).

func (*Backend) Close

func (b *Backend) Close() error

Close closes the backend.

func (*Backend) DownlinkTXAckChan

func (b *Backend) DownlinkTXAckChan() chan gw.DownlinkTXAck

DownlinkTXAckChan returns the downlink tx ack channel.

func (*Backend) GatewayStatsChan

func (b *Backend) GatewayStatsChan() chan gw.GatewayStats

GatewayStatsChan returns the gateway stats channel.

func (*Backend) SendDownlinkFrame

func (b *Backend) SendDownlinkFrame(frame gw.DownlinkFrame) error

SendDownlinkFrame sends the given downlink frame to the gateway.

func (*Backend) UplinkFrameChan

func (b *Backend) UplinkFrameChan() chan gw.UplinkFrame

UplinkFrameChan returns the uplink frame channel.

type PFConfiguration

type PFConfiguration struct {
	MAC            lorawan.EUI64 `mapstructure:"-"`
	MACString      string        `mapstructure:"mac"`
	BaseFile       string        `mapstructure:"base_file"`
	OutputFile     string        `mapstructure:"output_file"`
	RestartCommand string        `mapstructure:"restart_command"`
	Version        string        `mapstructure:"-"`
}

PFConfiguration holds the packet-forwarder configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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