Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brocaar/lorawan
/ functions
Functions
736 in github.com/brocaar/lorawan
⨍
Functions
736
◇
Types & classes
227
↓ 53 callers
Method
MarshalBinary
()
payload.go:141
↓ 26 callers
Method
UnmarshalBinary
(uplink bool, data []byte)
payload.go:142
↓ 23 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
phypayload.go:485
↓ 17 callers
Function
GetConfig
GetConfig returns the band configuration for the given band. Please refer to the LoRaWAN specification for more details about the effect of the repeat
band/band.go:670
↓ 17 callers
Method
GetDownlinkTXPower
GetDownlinkTXPower returns the TX power for downlink transmissions using the given frequency. Depending the band, it could return different values for
band/band.go:238
↓ 16 callers
Method
MarshalBinary
()
applayer/multicastsetup/multicastsetup.go:72
↓ 14 callers
Method
GetEnabledUplinkChannelIndices
GetEnabledUplinkChannelIndices returns the enabled uplink channel indices.
band/band.go:197
↓ 14 callers
Function
testMACPayloads
(newPLFunc func() MACCommandPayload, tests []macPayloadTest)
mac_commands_test.go:1111
↓ 13 callers
Method
GetDefaults
GetDefaults returns the band defaults.
band/band.go:245
↓ 13 callers
Method
GetPingSlotFrequency
GetPingSlotFrequency returns the frequency to use for the Class-B ping-slot.
band/band.go:214
↓ 12 callers
Method
GetUplinkChannelIndices
GetUplinkChannelIndices returns all available uplink channel indices.
band/band.go:187
↓ 11 callers
Method
GetRX1FrequencyForUplinkFrequency
GetRX1FrequencyForUplinkFrequency returns the frequency to use for RX1 given the uplink frequency.
band/band.go:211
↓ 11 callers
Function
NewKeyEnvelope
NewKeyEnvelope creates a new KeyEnvelope.
backend/backend.go:243
↓ 11 callers
Method
SetDownlinkJoinMIC
SetDownlinkJoinMIC calculates and sets the MIC field for downlink join requests.
phypayload.go:260
↓ 10 callers
Method
EncryptJoinAcceptPayload
EncryptJoinAcceptPayload encrypts the join-accept payload with the given key. Note that encrypted must be performed after calling SetMIC (since the MI
phypayload.go:285
↓ 10 callers
Function
decodeDataPayloadToMACCommands
decodeDataPayloadToMACCommands decodes a DataPayload into a slice of MACCommands.
mac_commands.go:1301
↓ 10 callers
Method
hasError
()
applayer/multicastsetup/multicastsetup.go:605
↓ 9 callers
Method
GetUplinkChannelIndex
GetUplinkChannelIndex returns the uplink channel index given a frequency. As it is possible that the same frequency occurs twice (eg. one time as a de
band/band.go:171
↓ 9 callers
Method
MarshalBinary
()
mac_commands.go:172
↓ 9 callers
Method
UnmarshalBinary
(data []byte)
mac_commands.go:173
↓ 8 callers
Method
GetBasePayload
GetBasePayload returns the base payload of the answer.
backend/backend.go:96
↓ 8 callers
Method
GetLinkADRReqPayloadsForEnabledUplinkChannelIndices
GetLinkADRReqPayloadsForEnabledUplinkChannelIndices returns the LinkADRReqPayloads to reconfigure the device to the current enabled channels. Note tha
band/band.go:228
↓ 8 callers
Function
GetMACPayloadAndSize
GetMACPayloadAndSize returns a new MACCommandPayload instance and it's size.
mac_commands.go:134
↓ 8 callers
Method
GetRX1ChannelIndexForUplinkChannelIndex
GetRX1ChannelIndexForUplinkChannelIndex returns the channel to use for RX1 given the uplink channel index.
band/band.go:207
↓ 8 callers
Method
HandleAnswer
HandleAnswer handles an async answer.
backend/client.go:54
↓ 8 callers
Method
getNwkID
(prefixLength, nwkIDBits int)
fhdr.go:110
↓ 8 callers
Method
isUplink
isUplink returns a bool indicating if the packet is uplink or downlink. Note that for MType Proprietary it can't derrive if the packet is uplink or do
phypayload.go:580
↓ 8 callers
Method
setAddrPrefix
(prefixLength, nwkIDBits int, netID NetID)
fhdr.go:84
↓ 7 callers
Method
DisableUplinkChannelIndex
DisableUplinkChannelIndex disables the given uplink channel index.
band/band.go:181
↓ 7 callers
Method
GetRandomTransactionID
()
backend/client.go:457
↓ 7 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
phypayload.go:508
↓ 7 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
macpayload.go:67
↓ 7 callers
Method
request
(ctx context.Context, pl Request, ans Answer)
backend/client.go:326
↓ 6 callers
Method
GetEnabledUplinkChannelIndicesForLinkADRReqPayloads
GetEnabledUplinkChannelIndicesForLinkADRReqPayloads returns the enabled uplink channel indices after applying the given LinkADRReqPayloads to the give
band/band.go:233
↓ 6 callers
Method
GetMaxPayloadSizeForDataRateIndex
GetMaxPayloadSizeForDataRateIndex returns the max-payload size for the given data-rate index, protocol version and regional-parameters revision. The p
band/band.go:150
↓ 6 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
fhdr.go:258
↓ 6 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:613
↓ 6 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
macpayload.go:37
↓ 6 callers
Method
MarshalJSON
MarshalJSON encodes the PHYPayload into JSON.
phypayload.go:570
↓ 6 callers
Method
MarshalText
MarshalText encodes the PHYPayload into base64.
phypayload.go:552
↓ 6 callers
Method
SetUplinkJoinMIC
SetUplinkJoinMIC calculates and sets the MIC field for uplink join requests.
phypayload.go:241
↓ 6 callers
Method
UnmarshalBinary
(data []byte)
applayer/multicastsetup/multicastsetup.go:73
↓ 6 callers
Method
returnError
(w http.ResponseWriter, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:120
↓ 6 callers
Method
returnPayload
(w http.ResponseWriter, code int, pl interface{})
backend/joinserver/joinserver.go:200
↓ 5 callers
Method
EncryptFRMPayload
EncryptFRMPayload encrypts the FRMPayload with the given key.
phypayload.go:406
↓ 5 callers
Method
GetCFList
GetCFList returns the CFList used for OTAA activation. The CFList contains the extra channels (e.g. for the EU band) or the channel-mask for LoRaWAN 1
band/band.go:222
↓ 5 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:437
↓ 5 callers
Method
UnmarshalText
UnmarshalText implements encoding.TextUnmarshaler.
backend/backend.go:120
↓ 5 callers
Function
getKey
(key lorawan.AES128Key, b [16]byte)
applayer/multicastsetup/keys.go:53
↓ 5 callers
Method
returnJoinReqError
(w http.ResponseWriter, basePL backend.BasePayload, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:140
↓ 5 callers
Method
returnRejoinReqError
(w http.ResponseWriter, basePL backend.BasePayload, code int, resultCode backend.ResultCode, msg string)
backend/joinserver/joinserver.go:160
↓ 4 callers
Method
DecodeFOptsToMACCommands
DecodeFOptsToMACCommands decodes the (decrypted) FOpts bytes into MAC commands.
phypayload.go:469
↓ 4 callers
Method
DecryptFRMPayload
DecryptFRMPayload decrypts the FRMPayload with the given key.
phypayload.go:434
↓ 4 callers
Method
IsFirmwareImageValid
IsFirmwareImageValid returns whether UpImageStatus==FirmwareValid stating update is present and valid
applayer/firmwaremanagement/firmwaremanagement.go:417
↓ 4 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:296
↓ 4 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:327
↓ 4 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:411
↓ 4 callers
Method
PRStartReq
PRStartReq method.
backend/client.go:42
↓ 4 callers
Method
Size
()
applayer/multicastsetup/multicastsetup.go:74
↓ 4 callers
Method
UnmarshalBinary
UnmarshalBinary decodes the object from binary form.
fhdr.go:296
↓ 4 callers
Method
UnmarshalText
UnmarshalText decodes the PHYPayload from base64.
phypayload.go:561
↓ 4 callers
Method
calculateUplinkDataMIC
(macVersion MACVersion, confFCnt uint32, txDR, txCh uint8, fNwkSIntKey, sNwkSIntKey AES128Key)
phypayload.go:687
↓ 4 callers
Function
getJSIntKey
getJSIntKey returns the JSIntKey.
backend/joinserver/session_keys.go:34
↓ 4 callers
Function
getSKey
(optNeg bool, typ byte, nwkKey lorawan.AES128Key, netID lorawan.NetID, joinEUI lorawan.EUI64, joinNonce lorawa
backend/joinserver/session_keys.go:43
↓ 4 callers
Function
newAS923Band
(repeaterCompatible bool, dt lorawan.DwellTime, frequencyOffset int, nameSuffix string)
band/band_as923.go:84
↓ 3 callers
Method
AddChannel
AddChannel adds an extra (user-configured) uplink / downlink channel. Note: this is not supported by every region.
band/band.go:162
↓ 3 callers
Function
CalculateLoRaSymbolDuration
CalculateLoRaSymbolDuration calculates the LoRa symbol duration.
airtime/airtime.go:37
↓ 3 callers
Method
EnableUplinkChannelIndex
EnableUplinkChannelIndex enables the given uplink channel index.
band/band.go:184
↓ 3 callers
Method
EncryptFOpts
EncryptFOpts encrypts the FOpts with the given key.
phypayload.go:357
↓ 3 callers
Method
GetCustomUplinkChannelIndices
GetCustomUplinkChannelIndices returns all custom uplink channels.
band/band.go:194
↓ 3 callers
Method
GetDataRateIndex
GetDataRateIndex returns the index for the given data-rate parameters.
band/band.go:137
↓ 3 callers
Method
GetUplinkChannel
GetUplinkChannel returns the uplink channel for the given index.
band/band.go:165
↓ 3 callers
Method
IsAsync
()
backend/client.go:168
↓ 3 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
payload.go:376
↓ 3 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:495
↓ 3 callers
Method
MarshalBinary
MarshalBinary marshals the object in binary form.
mac_commands.go:704
↓ 3 callers
Method
MarshalBinary
MarshalBinary encodes the object into bytes.
mac_commands.go:774
↓ 3 callers
Method
Name
Name returns the name of the band.
band/band.go:134
↓ 3 callers
Method
SetDownlinkDataMIC
SetDownlinkDataMIC calculates and sets the MIC field for downlink data frames. The confirmed frame-counter and is only required for LoRaWAN 1.1 and ca
phypayload.go:217
↓ 3 callers
Method
SetUplinkDataMIC
SetUplinkDataMIC calculates and sets the MIC field for uplink data frames. The confirmed frame-counter, TX data-rate TX channel index and SNwkSIntKey
phypayload.go:176
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:194
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:238
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:275
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:310
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/clocksync/clocksync.go:347
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:207
↓ 3 callers
Method
Size
Size returns the paylaod size in bytes.
applayer/fragmentation/fragmentation.go:288
↓ 3 callers
Method
Size
Size returns the payload size in bytes.
applayer/fragmentation/fragmentation.go:343
↓ 3 callers
Method
Size
Size returns the size of the payload in bytes.
applayer/fragmentation/fragmentation.go:375
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:455
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/fragmentation/fragmentation.go:503
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:195
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:220
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:251
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:278
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:368
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:409
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:462
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/firmwaremanagement/firmwaremanagement.go:496
↓ 3 callers
Method
Size
Size returns the payload size in number of bytes.
applayer/multicastsetup/multicastsetup.go:204
next →
1–100 of 736, ranked by callers