maccommand

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

Handle handles a MACCommand sent by a node.

func RequestDevStatus

func RequestDevStatus(ds *storage.DeviceSession) storage.MACCommandBlock

RequestDevStatus returns a mac-command block for requesting the device-status.

func RequestNewChannels

func RequestNewChannels(devEUI lorawan.EUI64, maxChannels int, currentChannels, wantedChannels map[int]band.Channel) *storage.MACCommandBlock

RequestNewChannels creates or modifies the non-common bi-directional channels in case of changes between the current and wanted channels. To avoid generating mac-command blocks which can't be sent, and to modify the channels in multiple batches, the max number of channels to modify must be given. In case of no changes, nil is returned.

func RequestPingSlotChannel

func RequestPingSlotChannel(devEUI lorawan.EUI64, dr, freq int) storage.MACCommandBlock

RequestPingSlotChannel modifies the frequency and / or the data-rate on which the end-device expects the downlink pings (class-b).

func RequestRXParamSetup

func RequestRXParamSetup(rx1DROffset, rx2Frequency, rx2DR int) storage.MACCommandBlock

RequestRXParamSetup modifies the RX1 data-rate offset, RX2 frequency and RX2 data-rate.

func RequestRXTimingSetup

func RequestRXTimingSetup(del int) storage.MACCommandBlock

RequestRXTimingSetup modifies the RX delay between the end of the TX and the opening of the first reception slot.

func RequestRejoinParamSetup

func RequestRejoinParamSetup(maxTimeN, maxCountN int) storage.MACCommandBlock

RequestRejoinParamSetup modifies the rejoin-request interval parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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