From 8f6afba4ef14ff7f9f3684406757192b9a6ce675 Mon Sep 17 00:00:00 2001 From: Gilles Coppex Date: Thu, 26 Jun 2025 21:58:08 +0200 Subject: [PATCH 1/2] Updating the error constant names (in stateDecode()) based on RadioLib update of May 29, 2025 - 49d340e667f418e2e337c9e1d59d39cc19d21752 --- examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino b/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino index 61ad741..ac1c7eb 100644 --- a/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino +++ b/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino @@ -126,10 +126,10 @@ String stateDecode(const int16_t result) return "RADIOLIB_ERR_COMMAND_QUEUE_ITEM_NOT_FOUND"; case RADIOLIB_ERR_JOIN_NONCE_INVALID: return "RADIOLIB_ERR_JOIN_NONCE_INVALID"; - case RADIOLIB_ERR_N_FCNT_DOWN_INVALID: - return "RADIOLIB_ERR_N_FCNT_DOWN_INVALID"; - case RADIOLIB_ERR_A_FCNT_DOWN_INVALID: - return "RADIOLIB_ERR_A_FCNT_DOWN_INVALID"; + case RADIOLIB_ERR_MIC_MISMATCH: + return "RADIOLIB_ERR_MIC_MISMATCH"; + case RADIOLIB_ERR_MULTICAST_FCNT_INVALID: + return "RADIOLIB_ERR_MULTICAST_FCNT_INVALID"; case RADIOLIB_ERR_DWELL_TIME_EXCEEDED: return "RADIOLIB_ERR_DWELL_TIME_EXCEEDED"; case RADIOLIB_ERR_CHECKSUM_MISMATCH: From 9dffd4ee8dcd73dd8de188069e3b1b1717313cb6 Mon Sep 17 00:00:00 2001 From: Gilles Coppex Date: Thu, 26 Jun 2025 22:29:09 +0200 Subject: [PATCH 2/2] Fixed a millisec to sec conversion in a serial print --- examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino b/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino index ac1c7eb..dbdb05d 100644 --- a/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino +++ b/examples/LoRaWAN/RadioLib_OTAA/RadioLib_OTAA.ino @@ -323,7 +323,7 @@ void setup() Serial.print(F("Boots since unsuccessful join: ")); // Serial.println(bootCountSinceUnsuccessfulJoin); Serial.print(F("Retrying join in ")); - Serial.print(sleepForSeconds); + Serial.print(sleepForSeconds / 1000); Serial.println(F(" seconds")); delay(sleepForSeconds);