This process will reduce overhead for CPU but will not be effective for low latency ADC sampling, i.e. the time between you decide to measure a sample and the time when you actually read the ADC will be in micro-seconds. Long lag! But ok for tasks like regular sampling.
If you need to sample the ADC when the system enters automatic sleep mode between Wi-Fi activity, you can create an idle task hook in the RTOS SDK and use that for ADC sampling. I have not tested this but the ESP8266 enters modem sleep when idle task is executed. So that is where you go for the ADC!
Let me know that helps (should work on RTOS SDK).Statistics: Posted by Guest — Fri Jan 13, 2017 2:55 pm
]]>