With the Spring Launch Event comes as well an updated RAK4631 Arduino BSP and an updated LoRaWAN library (SX126x-Arduino library).
These updates will unfortunately break backward compatibility with existing software.
Changes:
The LoRaWAN library now supports all regions without re-compiling
The handling of LoRa transceiver interrupts and LoRa/LoRaWAN events is now done in the background, there is no more need to call Radio.IrqProcess() from the main loop() or from a separate task.
Why:
First goal was to make the LoRa/LoRaWAN handling independent from any time consuming actions, functions, calculations that might happen in your application.
Second goal was to make the library more flexible regarding the international regional LoRaWAN specifications.
The updates are published, you will get notifications in Arduino IDE about the update in the next few days (after April 12th 2021).
Here you can find more details about the changes and how to handle them:
And another change. As we will bring out more WisBlock Core modules with Arduino support, we were looking in an easier way to install the RAK module Arduino BSP.
Hi Carl,
Thanks for the very fast response - I was not expecting it so soon. I’m not sure how to move this conversation to another thread in such a way as you’s know I had responded?
This is the error:
In file included from /home/alan/Arduino/libraries/SX126x-Arduino/src/mac/LoRaMacHelper.h:26,
from /home/alan/Arduino/libraries/SX126x-Arduino/src/LoRaWan-Arduino.h:17,
from /home/alan/Arduino/libraries/SX126x-Arduino/src/LoRaWan-RAK4630.h:4,
from /home/alan/Arduino/GPS_Tracker.ino/GPS_Tracker.ino.ino:26:
/home/alan/Arduino/libraries/SX126x-Arduino/src/mac/Commissioning.h:42:2: error: #error “SX126x-Arduino V2.0 does support all LoRaWAN regions without definition of 'REGION_XXYYY.\n\nPlease read detailed information how to use it on SX126x-Arduino/README_V2.md at master · beegee-tokyo/SX126x-Arduino · GitHub”
42 | #error “SX126x-Arduino V2.0 does support all LoRaWAN regions without definition of 'REGION_XXYYY.\n\nPlease read detailed information how to use it on SX126x-Arduino/README_V2.md at master · beegee-tokyo/SX126x-Arduino · GitHub”
| ^~~~~
exit status 1
Error compiling for board WisBlock Core RAK4631 Board.
Hi Bernd
Thanks for the reply.
I only started on this yesterday, so everything is up to date. Unless there is something I’m missing that isn’t mentioned in the installation instructions.
I have seen the link you included.
I see where and why the error is being generated and I have looked for a #define for a REGION… , but there is none that I can see.
You can check it by clicking the highlighted link in the arduino code. You must click that link in the Arduino IDE so it will automatically redirect you to the library manager.