diff --git a/_lo_ra_w_a_n_8h_source.html b/_lo_ra_w_a_n_8h_source.html
index 11d55a68..971bc99f 100644
--- a/_lo_ra_w_a_n_8h_source.html
+++ b/_lo_ra_w_a_n_8h_source.html
@@ -602,7 +602,7 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
854 int16_t
getMacDeviceTimeAns(uint32_t* gpsEpoch, uint8_t* fraction,
bool returnUnix =
true);
-
+
@@ -785,85 +785,91 @@ $(document).ready(function(){initNavTree('_lo_ra_w_a_n_8h_source.html',''); init
1061 int16_t restoreChannels();
-
-
+
+
-
-
-
-
-
-
-
-
- 1074 bool applyChannelMaskDyn(uint8_t chMaskCntl, uint16_t chMask);
+
+
+
+
+
+
+
+
+
-
- 1077 bool applyChannelMaskFix(uint8_t chMaskCntl, uint16_t chMask);
+
+
-
- 1080 uint8_t getMacPayloadLength(uint8_t cid);
-
- 1088 void setCSMA(uint8_t backoffMax, uint8_t difsSlots,
bool enableCSMA =
false);
-
-
-
-
-
-
+
+ 1080 bool applyChannelMaskDyn(uint8_t chMaskCntl, uint16_t chMask);
+
+
+ 1083 bool applyChannelMaskFix(uint8_t chMaskCntl, uint16_t chMask);
+
+
+ 1086 uint8_t getMacPayloadLength(uint8_t cid);
+
+ 1094 void setCSMA(uint8_t backoffMax, uint8_t difsSlots,
bool enableCSMA =
false);
-
- 1097 void processAES(
const uint8_t* in,
size_t len, uint8_t* key, uint8_t* out, uint32_t fCnt, uint8_t dir, uint8_t ctrId,
bool counter);
+
+
-
- 1100 static uint16_t checkSum16(uint8_t *key, uint16_t keyLen);
+
+
-
- 1103 template<
typename T>
- 1104 static T ntoh(uint8_t* buff,
size_t size = 0);
-
-
- 1107 template<
typename T>
- 1108 static void hton(uint8_t* buff, T val,
size_t size = 0);
-
-
-
+
+ 1103 void processAES(
const uint8_t* in,
size_t len, uint8_t* key, uint8_t* out, uint32_t fCnt, uint8_t dir, uint8_t ctrId,
bool counter);
+
+
+ 1106 static uint16_t checkSum16(uint8_t *key, uint16_t keyLen);
+
+
+ 1109 template<
typename T>
+ 1110 static T ntoh(uint8_t* buff,
size_t size = 0);
+
+
+ 1113 template<
typename T>
+ 1114 static void hton(uint8_t* buff, T val,
size_t size = 0);
+
+
+
LoRaWAN-compatible node (class A device).
Definition: LoRaWAN.h:524
void clearSession()
Clear an active session, so that the device will have to rejoin the network.
Definition: LoRaWAN.cpp:69
int16_t setBufferNonces(uint8_t *persistentBuffer)
Fill the internal buffer that holds the LW base parameters with a supplied buffer.
Definition: LoRaWAN.cpp:85
-int16_t setDatarate(uint8_t drUp)
Set uplink datarate. This should not be used when ADR is enabled.
Definition: LoRaWAN.cpp:2020
-int16_t uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL)
Send a message to the server.
Definition: LoRaWAN.cpp:895
+int16_t setDatarate(uint8_t drUp)
Set uplink datarate. This should not be used when ADR is enabled.
Definition: LoRaWAN.cpp:1976
+int16_t uplink(const char *str, uint8_t fPort, bool isConfirmed=false, LoRaWANEvent_t *event=NULL)
Send a message to the server.
Definition: LoRaWAN.cpp:896
RadioLibTime_t scanGuard
Rx window padding in milliseconds according to the spec, the Rx window must be at least enough time t...
Definition: LoRaWAN.h:886
void beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t *nwkKey, uint8_t *appKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:457
-uint8_t maxPayloadDwellTime()
Returns the maximum payload given the currently present dwell time limits. WARNING: the addition of M...
Definition: LoRaWAN.cpp:2103
-void setDutyCycle(bool enable=true, RadioLibTime_t msPerHour=0)
Toggle adherence to dutyCycle limits to on or off.
Definition: LoRaWAN.cpp:2061
-RadioLibTime_t timeUntilUplink()
Returns time in milliseconds until next uplink is available under dutyCycle limits.
Definition: LoRaWAN.cpp:2085
-void setDeviceStatus(uint8_t battLevel)
Set device status.
Definition: LoRaWAN.cpp:1715
-RadioLibTime_t dutyCycleInterval(RadioLibTime_t msPerHour, RadioLibTime_t airtime)
Calculate the minimum interval to adhere to a certain dutyCycle. This interval is based on the ToA of...
Definition: LoRaWAN.cpp:2075
-void setDwellTime(bool enable, RadioLibTime_t msPerUplink=0)
Toggle adherence to dwellTime limits to on or off.
Definition: LoRaWAN.cpp:2094
-uint32_t getAFCntDown()
Returns the last application downlink's frame counter; also 0 if no application downlink occured yet.
Definition: LoRaWAN.cpp:1731
-RadioLibTime_t getLastToA()
Get the Time-on-air of the last uplink message.
Definition: LoRaWAN.cpp:2928
-int16_t activateABP(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
Join network by restoring ABP session or performing over-the-air activation. In this procedure,...
Definition: LoRaWAN.cpp:826
+uint8_t maxPayloadDwellTime()
Returns the maximum payload given the currently present dwell time limits. WARNING: the addition of M...
Definition: LoRaWAN.cpp:2059
+void setDutyCycle(bool enable=true, RadioLibTime_t msPerHour=0)
Toggle adherence to dutyCycle limits to on or off.
Definition: LoRaWAN.cpp:2017
+RadioLibTime_t timeUntilUplink()
Returns time in milliseconds until next uplink is available under dutyCycle limits.
Definition: LoRaWAN.cpp:2041
+void setDeviceStatus(uint8_t battLevel)
Set device status.
Definition: LoRaWAN.cpp:1664
+RadioLibTime_t dutyCycleInterval(RadioLibTime_t msPerHour, RadioLibTime_t airtime)
Calculate the minimum interval to adhere to a certain dutyCycle. This interval is based on the ToA of...
Definition: LoRaWAN.cpp:2031
+void setDwellTime(bool enable, RadioLibTime_t msPerUplink=0)
Toggle adherence to dwellTime limits to on or off.
Definition: LoRaWAN.cpp:2050
+uint32_t getAFCntDown()
Returns the last application downlink's frame counter; also 0 if no application downlink occured yet.
Definition: LoRaWAN.cpp:1680
+RadioLibTime_t getLastToA()
Get the Time-on-air of the last uplink message (in milliseconds).
Definition: LoRaWAN.cpp:2942
+int16_t activateABP(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED)
Join network by restoring ABP session or performing over-the-air activation. In this procedure,...
Definition: LoRaWAN.cpp:827
bool TS009
TS009 Protocol Specification Verification switch (allows FPort 224 and cuts off uplink payload instea...
Definition: LoRaWAN.h:872
uint8_t * getBufferNonces()
Returns the pointer to the internal buffer that holds the LW base parameters.
Definition: LoRaWAN.cpp:77
-int16_t sendReceive(const char *strUp, uint8_t fPort, uint8_t *dataDown, size_t *lenDown, bool isConfirmed=false, LoRaWANEvent_t *eventUp=NULL, LoRaWANEvent_t *eventDown=NULL)
Send a message to the server and wait for a downlink during Rx1 and/or Rx2 window.
Definition: LoRaWAN.cpp:1695
+int16_t sendReceive(const char *strUp, uint8_t fPort, uint8_t *dataDown, size_t *lenDown, bool isConfirmed=false, LoRaWANEvent_t *eventUp=NULL, LoRaWANEvent_t *eventDown=NULL)
Send a message to the server and wait for a downlink during Rx1 and/or Rx2 window.
Definition: LoRaWAN.cpp:1644
uint8_t * getBufferSession()
Returns the pointer to the internal buffer that holds the LW session parameters.
Definition: LoRaWAN.cpp:121
-void beginABP(uint32_t addr, uint8_t *fNwkSIntKey, uint8_t *sNwkSIntKey, uint8_t *nwkSEncKey, uint8_t *appSKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:796
-bool isActivated()
Whether there is an ongoing session active.
Definition: LoRaWAN.cpp:885
-int16_t setTxPower(int8_t txPower)
Configure TX power of the radio module.
Definition: LoRaWAN.cpp:2124
-int16_t getMacDeviceTimeAns(uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true)
Returns the network time after requesting a DeviceTime MAC command. Returns 'true' if a network respo...
Definition: LoRaWAN.cpp:2907
-uint32_t getNFCntDown()
Returns the last network downlink's frame counter; also 0 if no network downlink occured yet.
Definition: LoRaWAN.cpp:1727
-uint64_t getDevAddr()
Returns the DevAddr of the device, regardless of OTAA or ABP mode.
Definition: LoRaWAN.cpp:2924
-int16_t downlink(uint8_t *data, size_t *len, LoRaWANEvent_t *event=NULL)
Wait for downlink from the server in either RX1 or RX2 window.
Definition: LoRaWAN.cpp:1340
+void beginABP(uint32_t addr, uint8_t *fNwkSIntKey, uint8_t *sNwkSIntKey, uint8_t *nwkSEncKey, uint8_t *appSKey)
Set the device credentials and activation configuration.
Definition: LoRaWAN.cpp:797
+bool isActivated()
Whether there is an ongoing session active.
Definition: LoRaWAN.cpp:886
+int16_t setTxPower(int8_t txPower)
Configure TX power of the radio module.
Definition: LoRaWAN.cpp:2080
+int16_t getMacDeviceTimeAns(uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true)
Returns the network time after requesting a DeviceTime MAC command. Returns 'true' if a network respo...
Definition: LoRaWAN.cpp:2921
+uint32_t getNFCntDown()
Returns the last network downlink's frame counter; also 0 if no network downlink occured yet.
Definition: LoRaWAN.cpp:1676
+int16_t downlink(uint8_t *data, size_t *len, LoRaWANEvent_t *event=NULL)
Wait for downlink from the server in either RX1 or RX2 window.
Definition: LoRaWAN.cpp:1326
int16_t setBufferSession(uint8_t *persistentBuffer)
Fill the internal buffer that holds the LW session parameters with a supplied buffer.
Definition: LoRaWAN.cpp:140
LoRaWANNode(PhysicalLayer *phy, const LoRaWANBand_t *band, uint8_t subBand=0)
Default constructor.
Definition: LoRaWAN.cpp:30
int16_t activateOTAA(uint8_t initialDr=RADIOLIB_LORAWAN_DATA_RATE_UNUSED, LoRaWANJoinEvent_t *joinEvent=NULL)
Join network by restoring OTAA session or performing over-the-air activation. By this procedure,...
Definition: LoRaWAN.cpp:484
-uint32_t getFCntUp()
Returns the last uplink's frame counter; also 0 if no uplink occured yet.
Definition: LoRaWAN.cpp:1720
-int16_t setRx2Dr(uint8_t dr)
Configure the Rx2 datarate for ABP mode. This should not be needed for LoRaWAN 1.1 as it is configure...
Definition: LoRaWAN.cpp:2188
-int16_t sendMacCommandReq(uint8_t cid)
Add a MAC command to the uplink queue. Only LinkCheck and DeviceTime are available to the user....
Definition: LoRaWAN.cpp:2215
-int16_t getMacLinkCheckAns(uint8_t *margin, uint8_t *gwCnt)
Returns the quality of connectivity after requesting a LinkCheck MAC command. Returns 'true' if a net...
Definition: LoRaWAN.cpp:2896
-void setADR(bool enable=true)
Toggle ADR to on or off.
Definition: LoRaWAN.cpp:2057
-void resetFCntDown()
Reset the downlink frame counters (application and network) This is unsafe and can possibly allow rep...
Definition: LoRaWAN.cpp:1735
+uint32_t getFCntUp()
Returns the last uplink's frame counter; also 0 if no uplink occured yet.
Definition: LoRaWAN.cpp:1669
+int16_t setRx2Dr(uint8_t dr)
Configure the Rx2 datarate for ABP mode. This should not be needed for LoRaWAN 1.1 as it is configure...
Definition: LoRaWAN.cpp:2144
+int16_t sendMacCommandReq(uint8_t cid)
Add a MAC command to the uplink queue. Only LinkCheck and DeviceTime are available to the user....
Definition: LoRaWAN.cpp:2171
+int16_t getMacLinkCheckAns(uint8_t *margin, uint8_t *gwCnt)
Returns the quality of connectivity after requesting a LinkCheck MAC command. Returns 'true' if a net...
Definition: LoRaWAN.cpp:2910
+void setADR(bool enable=true)
Toggle ADR to on or off.
Definition: LoRaWAN.cpp:2013
+uint32_t getDevAddr()
Returns the DevAddr of the device, regardless of OTAA or ABP mode.
Definition: LoRaWAN.cpp:2938
+void resetFCntDown()
Reset the downlink frame counters (application and network) This is unsafe and can possibly allow rep...
Definition: LoRaWAN.cpp:1684
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:54
unsigned long RadioLibTime_t
Type used for durations in RadioLib.
Definition: TypeDef.h:616
Structure to save information about LoRaWAN band.
Definition: LoRaWAN.h:386
diff --git a/class_lo_ra_w_a_n_node-members.html b/class_lo_ra_w_a_n_node-members.html
index 456bc5dc..79562a08 100644
--- a/class_lo_ra_w_a_n_node-members.html
+++ b/class_lo_ra_w_a_n_node-members.html
@@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('class_lo_ra_w_a_n_node.html',''); init
getAFCntDown() | LoRaWANNode | |
getBufferNonces() | LoRaWANNode | |
getBufferSession() | LoRaWANNode | |
- getDevAddr() | LoRaWANNode | |
+ getDevAddr() | LoRaWANNode | |
getFCntUp() | LoRaWANNode | |
getLastToA() | LoRaWANNode | |
getMacDeviceTimeAns(uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true) | LoRaWANNode | |
diff --git a/class_lo_ra_w_a_n_node.html b/class_lo_ra_w_a_n_node.html
index da6057a7..989ca200 100644
--- a/class_lo_ra_w_a_n_node.html
+++ b/class_lo_ra_w_a_n_node.html
@@ -211,11 +211,11 @@ uint8_t | int16_t | getMacDeviceTimeAns (uint32_t *gpsEpoch, uint8_t *fraction, bool returnUnix=true) |
| Returns the network time after requesting a DeviceTime MAC command. Returns 'true' if a network response was successfully parsed. Returns 'false' if there was no network response / parsing failed. More...
|
|
-uint64_t | getDevAddr () |
- | Returns the DevAddr of the device, regardless of OTAA or ABP mode. More...
|
- |
+uint32_t | getDevAddr () |
+ | Returns the DevAddr of the device, regardless of OTAA or ABP mode. More...
|
+ |
RadioLibTime_t | getLastToA () |
- | Get the Time-on-air of the last uplink message. More...
|
+ | Get the Time-on-air of the last uplink message (in milliseconds). More...
|
|
|
-◆ getDevAddr()
+
+◆ getDevAddr()
- uint64_t LoRaWANNode::getDevAddr |
+ uint32_t LoRaWANNode::getDevAddr |
( |
| ) |
|
@@ -615,7 +615,7 @@ bool
Returns the DevAddr of the device, regardless of OTAA or ABP mode.
-- Returns
- 8-byte DevAddr
+- Returns
- 4-byte DevAddr
@@ -634,8 +634,8 @@ bool |
- Get the Time-on-air of the last uplink message.
-- Returns
- (RadioLibTime_t) time-on-air (ToA) of last uplink message.
+Get the Time-on-air of the last uplink message (in milliseconds).
+- Returns
- (RadioLibTime_t) time-on-air (ToA) of last uplink message (in milliseconds).
diff --git a/class_lo_ra_w_a_n_node.js b/class_lo_ra_w_a_n_node.js
index 4a8b118e..d6e9d06f 100644
--- a/class_lo_ra_w_a_n_node.js
+++ b/class_lo_ra_w_a_n_node.js
@@ -12,7 +12,7 @@ var class_lo_ra_w_a_n_node =
[ "getAFCntDown", "class_lo_ra_w_a_n_node.html#a6785265f3311ff6bf296f82429c96701", null ],
[ "getBufferNonces", "class_lo_ra_w_a_n_node.html#a84004883006b4a498d4899874952445b", null ],
[ "getBufferSession", "class_lo_ra_w_a_n_node.html#a90369a4f2c4da11527872a7bbbf9ab06", null ],
- [ "getDevAddr", "class_lo_ra_w_a_n_node.html#aa97378ad7b669718fbef529649d03452", null ],
+ [ "getDevAddr", "class_lo_ra_w_a_n_node.html#aee0590cc9123ceac4c822eabed3150c6", null ],
[ "getFCntUp", "class_lo_ra_w_a_n_node.html#ad3217975ef9959ff83ce79dd80b0d777", null ],
[ "getLastToA", "class_lo_ra_w_a_n_node.html#a683b02b63867bb7de5df45c94d190305", null ],
[ "getMacDeviceTimeAns", "class_lo_ra_w_a_n_node.html#a9e6e1ce4296364606ff8b10fb5f971de", null ],
diff --git a/functions_func_g.html b/functions_func_g.html
index c3820aba..d99950a9 100644
--- a/functions_func_g.html
+++ b/functions_func_g.html
@@ -125,7 +125,7 @@ $(document).ready(function(){initNavTree('functions_func_g.html',''); initResiza
, SX127x
getDevAddr()
-: LoRaWANNode
+: LoRaWANNode
getFCntUp()
: LoRaWANNode
diff --git a/functions_g.html b/functions_g.html
index b5555a6a..bd630d9b 100644
--- a/functions_g.html
+++ b/functions_g.html
@@ -125,7 +125,7 @@ $(document).ready(function(){initNavTree('functions_g.html',''); initResizable()
, SX127x
getDevAddr()
-: LoRaWANNode
+: LoRaWANNode
getFCntUp()
: LoRaWANNode
diff --git a/navtreeindex1.js b/navtreeindex1.js
index 43dcfd44..934c05ba 100644
--- a/navtreeindex1.js
+++ b/navtreeindex1.js
@@ -133,7 +133,6 @@ var NAVTREEINDEX1 =
"class_lo_ra_w_a_n_node.html#a9af613f7d923e7bdcfdbd020132c6d4b":[3,0,24,33],
"class_lo_ra_w_a_n_node.html#a9e6e1ce4296364606ff8b10fb5f971de":[3,0,24,15],
"class_lo_ra_w_a_n_node.html#aa7fabaa6efe9978c3674b1ab187446a1":[3,0,24,17],
-"class_lo_ra_w_a_n_node.html#aa97378ad7b669718fbef529649d03452":[3,0,24,12],
"class_lo_ra_w_a_n_node.html#aabced307f6662998608f01fab25e4226":[3,0,24,7],
"class_lo_ra_w_a_n_node.html#aadebe7a412aec8043aa2f8f57a202f49":[3,0,24,27],
"class_lo_ra_w_a_n_node.html#aae05de563f765f14fe267e4d65844f76":[3,0,24,0],
@@ -144,6 +143,7 @@ var NAVTREEINDEX1 =
"class_lo_ra_w_a_n_node.html#adf038f331c1dc954dafc2668e7a31ca0":[3,0,24,16],
"class_lo_ra_w_a_n_node.html#ae222275f807f472083ea6100c23c75ff":[3,0,24,25],
"class_lo_ra_w_a_n_node.html#ae532e739ada04ea7463494a426f60b4d":[3,0,24,6],
+"class_lo_ra_w_a_n_node.html#aee0590cc9123ceac4c822eabed3150c6":[3,0,24,12],
"class_lo_ra_w_a_n_node.html#af4b3d07cd9bf4178d627204bae18b648":[3,0,24,20],
"class_module.html":[3,0,34],
"class_module.html#a085415b49ff72238f118b937ad896cbd":[3,0,34,23],
diff --git a/search/all_6.js b/search/all_6.js
index b201c852..fd6891a3 100644
--- a/search/all_6.js
+++ b/search/all_6.js
@@ -10,7 +10,7 @@ var searchData=
['getcs_135',['getCs',['../class_module.html#aa6cac04c7cb6d5278a318db0966ad1a7',1,'Module']]],
['getcurrentlimit_136',['getCurrentLimit',['../class_s_x126x.html#aa668babb0bd129b2facee9fd280525ab',1,'SX126x']]],
['getdatarate_137',['getDataRate',['../class_l_r11x0.html#a1ec81f3625fdc8a3ef6c54a3804c3aa9',1,'LR11x0::getDataRate()'],['../class_s_x126x.html#acbe2d75b1e2df8bcc58c4fd9d8e6e4f9',1,'SX126x::getDataRate()'],['../class_s_x127x.html#adc25b685de0859b799488bf7729350b6',1,'SX127x::getDataRate()']]],
- ['getdevaddr_138',['getDevAddr',['../class_lo_ra_w_a_n_node.html#aa97378ad7b669718fbef529649d03452',1,'LoRaWANNode']]],
+ ['getdevaddr_138',['getDevAddr',['../class_lo_ra_w_a_n_node.html#aee0590cc9123ceac4c822eabed3150c6',1,'LoRaWANNode']]],
['getfcntup_139',['getFCntUp',['../class_lo_ra_w_a_n_node.html#ad3217975ef9959ff83ce79dd80b0d777',1,'LoRaWANNode']]],
['getfhsschannel_140',['getFHSSChannel',['../class_s_x127x.html#a56340d1bdc69b3efc64636be39445a9c',1,'SX127x']]],
['getfhsshoppingperiod_141',['getFHSSHoppingPeriod',['../class_s_x127x.html#ad7600b8b0aac4d8a5e962d631145b617',1,'SX127x']]],
diff --git a/search/functions_6.js b/search/functions_6.js
index b191216b..5f10ac31 100644
--- a/search/functions_6.js
+++ b/search/functions_6.js
@@ -10,7 +10,7 @@ var searchData=
['getcs_819',['getCs',['../class_module.html#aa6cac04c7cb6d5278a318db0966ad1a7',1,'Module']]],
['getcurrentlimit_820',['getCurrentLimit',['../class_s_x126x.html#aa668babb0bd129b2facee9fd280525ab',1,'SX126x']]],
['getdatarate_821',['getDataRate',['../class_l_r11x0.html#a1ec81f3625fdc8a3ef6c54a3804c3aa9',1,'LR11x0::getDataRate()'],['../class_s_x126x.html#acbe2d75b1e2df8bcc58c4fd9d8e6e4f9',1,'SX126x::getDataRate()'],['../class_s_x127x.html#adc25b685de0859b799488bf7729350b6',1,'SX127x::getDataRate()']]],
- ['getdevaddr_822',['getDevAddr',['../class_lo_ra_w_a_n_node.html#aa97378ad7b669718fbef529649d03452',1,'LoRaWANNode']]],
+ ['getdevaddr_822',['getDevAddr',['../class_lo_ra_w_a_n_node.html#aee0590cc9123ceac4c822eabed3150c6',1,'LoRaWANNode']]],
['getfcntup_823',['getFCntUp',['../class_lo_ra_w_a_n_node.html#ad3217975ef9959ff83ce79dd80b0d777',1,'LoRaWANNode']]],
['getfhsschannel_824',['getFHSSChannel',['../class_s_x127x.html#a56340d1bdc69b3efc64636be39445a9c',1,'SX127x']]],
['getfhsshoppingperiod_825',['getFHSSHoppingPeriod',['../class_s_x127x.html#ad7600b8b0aac4d8a5e962d631145b617',1,'SX127x']]],
| |