classb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 12 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(ctx context.Context, 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