2021-07-12 11:31 PM
I have the STM32WL LoraWan_End_Node example working, but I don't understand the code with UTIL_SEQ_Run(UTIL_SEQ_DEFAULT); Where can I change the payload to send an ADC value to TTN?
Solved! Go to Solution.
2021-07-16 05:48 AM
Hi @RFric.1 ,
The sequencer is nothing else than a packaged while loop. Please have a look at
https://github.com/STMicroelectronics/STM32CubeWL/issues/14
Basically you should not have to touch to UTIL_SEQ_Run(UTIL_SEQ_DEFAULT). It just checks if there any task or event to process, otherwise it goes to idle and calls UTIL_SEQ_Idle()
for the ADC value, that you want to send, you should modify the function SendTxData in lora_app.c and add (or replace) for exemple AppData.Buffer[i++]=YourAdcValue;
2021-07-16 05:48 AM
Hi @RFric.1 ,
The sequencer is nothing else than a packaged while loop. Please have a look at
https://github.com/STMicroelectronics/STM32CubeWL/issues/14
Basically you should not have to touch to UTIL_SEQ_Run(UTIL_SEQ_DEFAULT). It just checks if there any task or event to process, otherwise it goes to idle and calls UTIL_SEQ_Idle()
for the ADC value, that you want to send, you should modify the function SendTxData in lora_app.c and add (or replace) for exemple AppData.Buffer[i++]=YourAdcValue;