semtechudp

package
v0.0.0-...-8397304 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 26 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 (UDP) gateway backend.

func NewBackend

func NewBackend(conf config.Config) (*Backend, error)

NewBackend creates a new backend.

func (*Backend) ApplyConfiguration

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

ApplyConfiguration is not implemented.

func (*Backend) RawPacketForwarderCommand

func (b *Backend) RawPacketForwarderCommand(gw.RawPacketForwarderCommand) error

RawPacketForwarderCommand sends the given raw command to the packet-forwarder.

func (*Backend) SendDownlinkFrame

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

SendDownlinkFrame sends the given downlink frame to the gateway.

func (*Backend) SetDownlinkTxAckFunc

func (b *Backend) SetDownlinkTxAckFunc(f func(gw.DownlinkTXAck))

SetDownlinkTxAckFunc sets the DownlinkTXAck handler func.

func (*Backend) SetGatewayStatsFunc

func (b *Backend) SetGatewayStatsFunc(f func(gw.GatewayStats))

SetGatewayStatsFunc sets the GatewayStats handler func.

func (*Backend) SetRawPacketForwarderEventFunc

func (b *Backend) SetRawPacketForwarderEventFunc(func(gw.RawPacketForwarderEvent))

SetRawPacketForwarderEventFunc sets the RawPacketForwarderEvent handler func.

func (*Backend) SetSubscribeEventFunc

func (b *Backend) SetSubscribeEventFunc(f func(events.Subscribe))

SetSubscribeEventFunc sets the Subscribe handler func.

func (*Backend) SetUplinkFrameFunc

func (b *Backend) SetUplinkFrameFunc(f func(gw.UplinkFrame))

SetUplinkFrameFunc sets the UplinkFrame handler func.

func (*Backend) Start

func (b *Backend) Start() error

Start stats the backend.

func (*Backend) Stop

func (b *Backend) Stop() error

Stop stops the backend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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