Documentation ¶
Index ¶
- Variables
- func DLMetaDataToUplinkRXInfoSet(dl backend.DLMetaData) ([]*gw.UplinkRXInfo, error)
- func GetClientForNetID(clientNetID lorawan.NetID) (backend.Client, error)
- func GetKEKKey(label string) ([]byte, error)
- func GetNetIDsForDevAddr(devAddr lorawan.DevAddr) []lorawan.NetID
- func GetPassiveRoamingKEKLabel(netID lorawan.NetID) string
- func GetPassiveRoamingLifetime(netID lorawan.NetID) time.Duration
- func IsRoamingDevAddr(devAddr lorawan.DevAddr) bool
- func IsRoamingEnabled() bool
- func RXInfoToGWInfo(rxInfo []*gw.UplinkRXInfo) ([]backend.GWInfoElement, error)
- func RecvTimeFromRXInfo(rxInfo []*gw.UplinkRXInfo) backend.ISO8601Time
- func Setup(c config.Config) error
- func ULMetaDataToRXInfo(ulMetaData backend.ULMetaData) ([]*gw.UplinkRXInfo, error)
- func ULMetaDataToTXInfo(ulMetaData backend.ULMetaData) (*gw.UplinkTXInfo, error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
GetClientForNetID returns the API client for the given NetID.
func GetNetIDsForDevAddr ¶
GetNetIDsForDevAddr returns the NetIDs matching the given DevAddr.
func GetPassiveRoamingKEKLabel ¶
GetPassiveRoamingKEKLabel returns the KEK label for the given NetID or an empty string.
func GetPassiveRoamingLifetime ¶
GetPassiveRoamingLifetime returns the passive-roaming lifetime for the given NetID.
func IsRoamingDevAddr ¶
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 ULMetaDataToRXInfo ¶
func ULMetaDataToRXInfo(ulMetaData backend.ULMetaData) ([]*gw.UplinkRXInfo, error)
func ULMetaDataToTXInfo ¶
func ULMetaDataToTXInfo(ulMetaData backend.ULMetaData) (*gw.UplinkTXInfo, error)
Types ¶
This section is empty.