2026-05-26 7:47 AM
Dear Community,
after the most recent Webinar regarding LoRaWAN Relays I downloaded the newest CubeWL, which was version 1.5.0 and now I'm trying to migrate my code from CubeWL 1.3.1 to 1.5.0.
My project is the Firmware for LoRaWAN Class C end nodes - which was no problem in CubeWL 1.3.1 as there was a setting in CubeMX to make the node Class C in the startup. As a consequence of this, a function was generated called OnRxData() in the file lora_app.c that would be called whenever a packet is received. It would differentiate the treatment depending on the port (e.g., the example code was port 2 or LORAWAN_USER_APP_PORT to switch on and off the LED on the Eval Board).
I think, it wouldn't be a problem to switch the end node from class A to class C after startup but I'm struggling to find code that is called when a packet is received in the LoRaWAN_End_Node_LBM project.
Could you please point me to the code I'm searching for?
Kind regards,
Bernhard