[LoRaWAN] Expose downlink framecounters

pull/900/head
StevenCellist 2023-12-09 10:28:13 +01:00
rodzic 047eafce74
commit 62276e070b
3 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

@ -298,6 +298,9 @@ uplink KEYWORD2
downlink KEYWORD2
sendReceive KEYWORD2
setDeviceStatus KEYWORD2
getFcntUp KEYWORD2
getNFcntDown KEYWORD2
getAFcntDown KEYWORD2
setDatarate KEYWORD2
setADR KEYWORD2
setTxPower KEYWORD2

Wyświetl plik

@ -1335,6 +1335,14 @@ uint32_t LoRaWANNode::getFcntUp() {
return(this->fcntUp);
}
uint32_t LoRaWANNode::getNFcntDown() {
return(this->nFcntDown);
}
uint32_t LoRaWANNode::getAFcntDown() {
return(this->aFcntDown);
}
uint32_t LoRaWANNode::generateMIC(uint8_t* msg, size_t len, uint8_t* key) {
if((msg == NULL) || (len == 0)) {
return(0);

Wyświetl plik

@ -527,6 +527,12 @@ class LoRaWANNode {
/*! \brief Returns the last uplink's frame counter */
uint32_t getFcntUp();
/*! \brief Returns the last network downlink's frame counter */
uint32_t getNFcntDown();
/*! \brief Returns the last application downlink's frame counter */
uint32_t getAFcntDown();
/*!
\brief Set uplink datarate. This should not be used when ADR is enabled.
\param dr Datarate to use for uplinks.