Skip to main content
RFric.1
Visitor II
July 13, 2021
Solved

STM32WL LoraWan_End_Node example, change payload to send to TTN

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?

This topic has been closed for replies.
YBOUV.1
YBOUV.1Best answer
ST Employee
July 16, 2021

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;

1 reply

YBOUV.1
YBOUV.1Best answer
ST Employee
July 16, 2021

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;