classb

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBeaconStartForTime

func GetBeaconStartForTime(ts time.Time) time.Duration

GetBeaconStartForTime returns the beacon start time as a duration since GPS epoch for the given time.Time.

func GetNextPingSlotAfter

func GetNextPingSlotAfter(afterGPSEpochTS time.Duration, devAddr lorawan.DevAddr, pingNb int) (time.Duration, error)

GetNextPingSlotAfter returns the next pingslot occuring after the given gps epoch timestamp.

func GetPingOffset

func GetPingOffset(beacon time.Duration, devAddr lorawan.DevAddr, pingNb int) (int, error)

GetPingOffset returns the ping offset for the given beacon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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