cancel
Showing results for 
Search instead for 
Did you mean: 

How to change APP_TX_DUTYCYCLE from remote?

ABläs.1
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Louis AUDOLY
ST Employee

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

View solution in original post

2 REPLIES 2
Louis AUDOLY
ST Employee

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
Associate II

Thank you, exactly what I was looking for!