Skip to main content
ABläs.1
Associate II
March 30, 2022
Solved

How to change APP_TX_DUTYCYCLE from remote?

I want to change the tx-duty cycle when my application is running (from a scheduled downlink for example), I guess i just could replace the define with my own variable, but that would be overwritten as it is outside the user code sections. What is the recommended way of doing this?

This topic has been closed for replies.
Louis AUDOLY
Louis AUDOLYBest answer
ST Employee
March 31, 2022

Hello,

To change the period of your Tx you can use the function static void OnTxPeriodicityChanged(uint32_t periodicity) in lora_app.c.

The user sections protect your code when you regenerate your software via cubeMX. All the code between user sections will be kept and replace at the same place.

Hope it helps you

Regards

2 replies

Louis AUDOLY
Louis AUDOLYBest answer
ST Employee
March 31, 2022

Hello,

To change the period of your Tx you can use the function static void OnTxPeriodicityChanged(uint32_t periodicity) in lora_app.c.

The user sections protect your code when you regenerate your software via cubeMX. All the code between user sections will be kept and replace at the same place.

Hope it helps you

Regards

ABläs.1
ABläs.1Author
Associate II
March 31, 2022

Thank you, exactly what I was looking for!