cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WLE5(RAK3172) - Why do we need to initialize and de-initialize the ADC function again and again for every read, whether this method is effective?

Praveen_PK
Associate

0693W00000Svy7DQAR.png0693W00000Svy78QAB.pngI'm currently working on stm32WLE5(RAK3172) for that module, and I'm using SDK 1.0.0V 

 1) In that LoRaWAN stack for battery reading implementation, we are noticing that the ADC initialization & de-initialization happening every time.

My question is, why do we need to De-initialize every time? Instead, the initialization can happen only one time before the while loop. So that we don't need to de-initialize & initialize every time.

We are observing that the battery value is constant if we implement it like the previous scenario.

Kindly support this. 

Thanks in advance!

0 REPLIES 0