Documentation ¶
Index ¶
- func Handle(ds *storage.DeviceSession, dp storage.DeviceProfile, sp storage.ServiceProfile, ...) ([]storage.MACCommandBlock, error)
- func RequestDevStatus(ds *storage.DeviceSession) storage.MACCommandBlock
- func RequestNewChannels(devEUI lorawan.EUI64, maxChannels int, ...) *storage.MACCommandBlock
- func RequestPingSlotChannel(devEUI lorawan.EUI64, dr, freq int) storage.MACCommandBlock
- func RequestRXParamSetup(rx1DROffset, rx2Frequency, rx2DR int) storage.MACCommandBlock
- func RequestRXTimingSetup(del int) storage.MACCommandBlock
- func RequestRejoinParamSetup(maxTimeN, maxCountN int) storage.MACCommandBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(ds *storage.DeviceSession, dp storage.DeviceProfile, sp storage.ServiceProfile, asClient as.ApplicationServerServiceClient, block storage.MACCommandBlock, pending *storage.MACCommandBlock, rxPacket models.RXPacket) ([]storage.MACCommandBlock, error)
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.