Documentation ¶
Index ¶
- func GetBeaconStartForTime(ts time.Time) time.Duration
- func GetNextPingSlotAfter(afterGPSEpochTS time.Duration, devAddr lorawan.DevAddr, pingNb int) (time.Duration, error)
- func GetPingOffset(beacon time.Duration, devAddr lorawan.DevAddr, pingNb int) (int, error)
- func ScheduleDeviceQueueToPingSlotsForDevEUI(db sqlx.Ext, dp storage.DeviceProfile, ds storage.DeviceSession) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBeaconStartForTime ¶
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 ¶
GetPingOffset returns the ping offset for the given beacon.
func ScheduleDeviceQueueToPingSlotsForDevEUI ¶
func ScheduleDeviceQueueToPingSlotsForDevEUI(db sqlx.Ext, dp storage.DeviceProfile, ds storage.DeviceSession) error
ScheduleDeviceQueueToPingSlotsForDevEUI schedules the device-queue for the given DevEUI to Class-B ping slots.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.