Skip to main content
Associate III
Jan 29, 2025 7:22 AM UTC
Solved

Switching from TX_ON_TIMER and TX_ON_EVENT

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

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
Jan 29, 2025 1:20 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

1 reply

STTwo-32
STTwo-32Best answer
ST Technical Moderator
Jan 29, 2025 1:20 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.