Documentation
¶
Index ¶
- Constants
- type Window
- func (w *Window) GetListeningFrequency() uint32
- func (w *Window) MarshalJSON() ([]byte, error)
- func (w *Window) OpenWindow(Delay time.Duration, ReceivedDownlink *dl.ReceivedDownlink) *lorawan.PHYPayload
- func (w *Window) SetListeningFrequency(freq uint32)
- func (w *Window) UnmarshalJSON(data []byte) error
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 ¶
GetListeningFrequency get window's listening frequency
func (*Window) MarshalJSON ¶
MarshalJSON of device's Receive window
func (*Window) OpenWindow ¶
func (w *Window) OpenWindow(Delay time.Duration, ReceivedDownlink *dl.ReceivedDownlink) *lorawan.PHYPayload
func (*Window) SetListeningFrequency ¶
SetListeningFrequency set window's listening frequency
func (*Window) UnmarshalJSON ¶
UnmarshalJSON of device's Receive window
Click to show internal directories.
Click to hide internal directories.