LoRaWAN client code stopped compiling due to missing RADIOLIB_ERR defines #1519
-
We have a device based on a RP Pico that communicates via LoRaWAN. The source code for the client has now stopped compiling due to "RADIOLIB_ERR_N_FCNT_DOWN_INVALID" and "RADIOLIB_ERR_A_FCNT_DOWN_INVALID" not being found in the scope of the function that use them. Question: Are they no longer valid errors? Or should we do things in a new way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @sten-senarch, good question! A 7.2 release is pending with a note for the removal of these error codes. These error codes are not used anymore, as RadioLib now always tries a rollover of the 16-bit FCnt value instead of using the MaxFCntGap limit which I erroneously implemented. |
Beta Was this translation helpful? Give feedback.
Hi @sten-senarch, good question! A 7.2 release is pending with a note for the removal of these error codes. These error codes are not used anymore, as RadioLib now always tries a rollover of the 16-bit FCnt value instead of using the MaxFCntGap limit which I erroneously implemented.
An invalid FCnt will now always be attempted to verify the MIC, and if it is indeed invalid, will return
MIC_MISMATCH
which is the new name of the error code -1112.