cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL LoraWan_End_Node example, change payload to send to TTN

RFric.1
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
YBOUV.1
Senior

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;

View solution in original post

1 REPLY 1
YBOUV.1
Senior

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;