roaming

package
v3.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAgreement = errors.New("agreement not found")

ErrNoAgreement is returned when the requested agreement could not be found.

Functions

func DLMetaDataToUplinkRXInfoSet

func DLMetaDataToUplinkRXInfoSet(dl backend.DLMetaData) ([]*gw.UplinkRXInfo, error)

DLMetaDataToRXInfoSet returns the UplinkRXInfo set from the given DLMetaData.

func GetClientForNetID

func GetClientForNetID(clientNetID lorawan.NetID) (backend.Client, error)

GetClientForNetID returns the API client for the given NetID.

func GetKEKKey

func GetKEKKey(label string) ([]byte, error)

GetKEKKey returns the KEK key for the given label.

func GetNetIDsForDevAddr

func GetNetIDsForDevAddr(devAddr lorawan.DevAddr) []lorawan.NetID

GetNetIDsForDevAddr returns the NetIDs matching the given DevAddr.

func GetPassiveRoamingKEKLabel

func GetPassiveRoamingKEKLabel(netID lorawan.NetID) string

GetPassiveRoamingKEKLabel returns the KEK label for the given NetID or an empty string.

func GetPassiveRoamingLifetime

func GetPassiveRoamingLifetime(netID lorawan.NetID) time.Duration

GetPassiveRoamingLifetime returns the passive-roaming lifetime for the given NetID.

func IsRoamingDevAddr

func IsRoamingDevAddr(devAddr lorawan.DevAddr) bool

IsRoamingDevAddr returns true when the DevAddr does not match the NetID of the ChirpStack Network Server configuration. In case roaming is disabled, this will always return false. Note that enabling roaming -and- using ABP devices can be problematic when the ABP DevAddr does not match the NetID.

func IsRoamingEnabled

func IsRoamingEnabled() bool

IsRoamingEnabled returns if roaming is enabled.

func RXInfoToGWInfo

func RXInfoToGWInfo(rxInfo []*gw.UplinkRXInfo) ([]backend.GWInfoElement, error)

func RecvTimeFromRXInfo

func RecvTimeFromRXInfo(rxInfo []*gw.UplinkRXInfo) backend.ISO8601Time

func Setup

func Setup(c config.Config) error

Setup configures the roaming package.

func ULMetaDataToRXInfo

func ULMetaDataToRXInfo(ulMetaData backend.ULMetaData) ([]*gw.UplinkRXInfo, error)

func ULMetaDataToTXInfo

func ULMetaDataToTXInfo(ulMetaData backend.ULMetaData) (*gw.UplinkTXInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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