2022-03-30 03:26 AM
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?
Solved! Go to Solution.
2022-03-31 06:29 AM
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
2022-03-31 06:29 AM
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
2022-03-31 06:37 AM
Thank you, exactly what I was looking for!