helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataRateIndex

func GetDataRateIndex(uplink bool, v DataRateGetter, b band.Band) (int, error)

GetDataRateIndex returns the data-rate index.

func GetDownlinkID

func GetDownlinkID(v DownlinkIDGetter) uuid.UUID

GetDownlinkID returns the types downlink ID.

func GetGatewayID

func GetGatewayID(v GatewayIDGetter) lorawan.EUI64

GetGatewayID returns the typed gateway ID.

func GetStatsID

func GetStatsID(v *gw.GatewayStats) uuid.UUID

GetStatsID returns the typed stats ID.

func GetUplinkID

func GetUplinkID(v *gw.UplinkRXInfo) uuid.UUID

GetUplinkID returns the typed message ID.

func SetDownlinkTXInfoDataRate

func SetDownlinkTXInfoDataRate(txInfo *gw.DownlinkTXInfo, dr int, b band.Band) error

SetDownlinkTXInfoDataRate sets the DownlinkTXInfo data-rate.

func SetUplinkTXInfoDataRate

func SetUplinkTXInfoDataRate(txInfo *gw.UplinkTXInfo, dr int, b band.Band) error

SetUplinkTXInfoDataRate sets the UplinkTXInfo data-rate.

Types

type DataRateGetter

type DataRateGetter interface {
	GetModulation() common.Modulation
	GetLoraModulationInfo() *gw.LoRaModulationInfo
	GetFskModulationInfo() *gw.FSKModulationInfo
}

DataRateGetter provides an interface for getting the data-rate.

type DownlinkIDGetter

type DownlinkIDGetter interface {
	GetDownlinkId() []byte
}

DownlinkIDGetter provides a DownlinkId getter interface.

type GatewayIDGetter

type GatewayIDGetter interface {
	GetGatewayId() []byte
}

GatewayIDGetter provides a GatewayId getter interface.

Jump to

Keyboard shortcuts

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