Skip to main content
Associate III
January 29, 2025
Solved

Switching from TX_ON_TIMER and TX_ON_EVENT

  • January 29, 2025
  • 1 reply
  • 800 views

Hello, I have a RAK3172 which is based on STM32WLE5CCU6, and it is being configured for LoRaWAN, and the node transmission is happening based on timer (TX_ON_TIMER), sometimes an External interrupt will be there and the device needs to send the packet immediately (TX_ON_EVENT), now how to switch from TX_ON_TIMER to TX_ON_EVENT

Best answer by STTwo-32

Hello @pho3nix 

To switch from TX_ON_TIMER to TX_ON_EVENT on a LoRaWAN context you have to use an TxEventType_t variable that can control the variation of transmission generator (Timer or event). For more details, try to have a look at the LoRaWAN_End_Node application specially the lora_app.c file.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
January 29, 2025

Hello @pho3nix 

To switch from TX_ON_TIMER to TX_ON_EVENT on a LoRaWAN context you have to use an TxEventType_t variable that can control the variation of transmission generator (Timer or event). For more details, try to have a look at the LoRaWAN_End_Node application specially the lora_app.c file.

Best Regards.

STTwo-32