- Note
- All the following code must be implemented in the initialisation part of a FreeRTOS task!
-
Nearly all calls to the driver will suspend the calling task while the driver waits for response from the RN2484 module.
Example code
In this use case, the driver is setup to Activation by personalization (ABP).
Workflow
- Define the necessary app identification for ABP join:
#define LORA_appAddr "????????"
#define LORA_nwkskey "????????????????????????????????"
#define LORA_appskey "????????????????????????????????"
- Note
- The parameters depends on the setup of the LoRaWAN network server and will be given to you.
- Set the module to factory set defaults:
- Configure the module to use the EU868 frequency plan and settings:
- Set the necessary LoRaWAN parameters for an ABP join:
- Save all set parameters to the RN2483 modules EEPROM (OPTIONAL STEP):
- Note
- If this step is performed then it is no necessary to do the steps above more than once. These parameters will automatically be restored in the module on next reset or power on.
- Join LoRaWAN parameters with ABP: