classb

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 10 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.

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.

Jump to

Keyboard shortcuts

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