Documentation ¶
Index ¶
- func Handle(ctx context.Context, ds *storage.DeviceSession, dp storage.DeviceProfile, ...) ([]storage.MACCommandBlock, error)
- func RequestDevStatus(ctx context.Context, ds *storage.DeviceSession) storage.MACCommandBlock
- func RequestNewChannels(devEUI lorawan.EUI64, maxChannels int, ...) *storage.MACCommandBlock
- func RequestPingSlotChannel(devEUI lorawan.EUI64, dr int, freq uint32) storage.MACCommandBlock
- func RequestRXParamSetup(rx1DROffset int, rx2Frequency uint32, rx2DR int) storage.MACCommandBlock
- func RequestRXTimingSetup(del int) storage.MACCommandBlock
- func RequestRejoinParamSetup(maxTimeN, maxCountN int) storage.MACCommandBlock
- func RequestTXParamSetup(uplinkDwellTime400ms, downlinkDwellTime400ms bool, maxEIRP uint8) storage.MACCommandBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(ctx context.Context, 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(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 ¶
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.