maccommand

package
v3.0.0-...-0efb78a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 17 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(ctx context.Context, 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 int, freq uint32) 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 int, rx2Frequency uint32, 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.

func RequestTXParamSetup

func RequestTXParamSetup(uplinkDwellTime400ms, downlinkDwellTime400ms bool, maxEIRP uint8) storage.MACCommandBlock

RequestTXParamSetup modifies the uplink / downlink dwell time and uplink max. EIRP settings on the device.

Types

This section is empty.

Jump to

Keyboard shortcuts

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