diff --git a/keywords.txt b/keywords.txt index 4cd39fb45..a791ce517 100644 --- a/keywords.txt +++ b/keywords.txt @@ -124,7 +124,6 @@ setSyncWord KEYWORD2 setOutputPower KEYWORD2 setCurrentLimit KEYWORD2 setPreambleLength KEYWORD2 -invertPreamble KEYWORD2 setGain KEYWORD2 getFrequencyError KEYWORD2 getRSSI KEYWORD2 @@ -222,7 +221,6 @@ spectralScanStart KEYWORD2 spectralScanAbort KEYWORD2 spectralScanGetStatus KEYWORD2 spectralScanGetResult KEYWORD2 -setPaConfig KEYWORD2 # nRF24 setIrqAction KEYWORD2 @@ -291,12 +289,18 @@ setModem KEYWORD2 # LoRaWAN wipe KEYWORD2 -restoreOTAA KEYWORD2 +restore KEYWORD2 beginOTAA KEYWORD2 beginABP KEYWORD2 +saveSession KEYWORD2 uplink KEYWORD2 downlink KEYWORD2 -configureChannel KEYWORD2 +sendReceive KEYWORD2 +setDeviceStatus KEYWORD2 +setDatarate KEYWORD2 +setADR KEYWORD2 +selectSubband KEYWORD2 +setCSMA KEYWORD2 ####################################### # Constants (LITERAL1) @@ -408,4 +412,5 @@ RADIOLIB_ERR_COMMAND_QUEUE_EMPTY LITERAL1 RADIOLIB_ERR_COMMAND_QUEUE_ITEM_NOT_FOUND LITERAL1 RADIOLIB_ERR_JOIN_NONCE_INVALID LITERAL1 RADIOLIB_ERR_N_FCNT_DOWN_INVALID LITERAL1 -RADIOLIB_ERR_A_FCNT_DOWN_INVALID LITERAL1 \ No newline at end of file +RADIOLIB_ERR_A_FCNT_DOWN_INVALID LITERAL1 +RADIOLIB_ERR_DATA_RATE_INVALID LITERAL1 \ No newline at end of file diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index 8d61a8616..754cee6e7 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -65,11 +65,13 @@ int16_t LoRaWANNode::restore() { // check the magic value if(mod->hal->getPersistentParameter(RADIOLIB_PERSISTENT_PARAM_LORAWAN_MAGIC_ID) != RADIOLIB_LORAWAN_MAGIC) { - RADIOLIB_DEBUG_PRINTLN("magic id not set (no saved session)"); - RADIOLIB_DEBUG_PRINTLN("first 16 bytes of NVM:"); - uint8_t nvmBuff[16]; - mod->hal->readPersistentStorage(mod->hal->getPersistentAddr(0), nvmBuff, 16); - RADIOLIB_DEBUG_HEXDUMP(nvmBuff, 16); + #if defined(RADIOLIB_DEBUG) + RADIOLIB_DEBUG_PRINTLN("magic id not set (no saved session)"); + RADIOLIB_DEBUG_PRINTLN("first 16 bytes of NVM:"); + uint8_t nvmBuff[16]; + mod->hal->readPersistentStorage(mod->hal->getPersistentAddr(0), nvmBuff, 16); + RADIOLIB_DEBUG_HEXDUMP(nvmBuff, 16); + #endif // the magic value is not set, user will have to do perform the join procedure return(RADIOLIB_ERR_NETWORK_NOT_JOINED); }