features

package
v0.0.0-...-55fa497 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ReceiveDelay delay to open receive window rx1
	ReceiveDelay = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window struct {
	Channel      c.Channel     `json:"channel"` // RX1's frequency is same of last uplink's frequency
	Delay        time.Duration `json:"delay"`
	DurationOpen time.Duration `json:"durationOpen"`
	DataRate     uint8         `json:"dataRate"`
}

Window is a receive window

func (*Window) GetListeningFrequency

func (w *Window) GetListeningFrequency() uint32

GetListeningFrequency get window's listening frequency

func (*Window) MarshalJSON

func (w *Window) MarshalJSON() ([]byte, error)

MarshalJSON of device's Receive window

func (*Window) OpenWindow

func (w *Window) OpenWindow(Delay time.Duration, ReceivedDownlink *dl.ReceivedDownlink) *lorawan.PHYPayload

func (*Window) SetListeningFrequency

func (w *Window) SetListeningFrequency(freq uint32)

SetListeningFrequency set window's listening frequency

func (*Window) UnmarshalJSON

func (w *Window) UnmarshalJSON(data []byte) error

UnmarshalJSON of device's Receive window

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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