I am working on something where I want to continually sample data from some sensors attached to the ESP8266 and periodically upload that data using a HTTP POST.
All examples I have seen (Arduino samples so far) basically stop sampling the data while they connect WiFi and upload the data, which is not suitable for my use case as I will lose important information.
Is it possible to have the data continually sampled from sensors, and upload happen "simulataneously" and do you have any links to examples doing this?
I was considering using ISR to do the sensor data sampling while the main routine basically has a loop of sleep, gather data, connect wifi, do POST.
I was wondering if this is possible with arduino, if not I am also considering using the Espressif RTOS SDK instead which is probably much more suitable anyway as my sensor sampling realistically should have time limits to be accurate.
What issues might I face?
For example I read that using the ADC during WiFi TX will give erroneous results. Would this also happen if using an external ADC like ADS1115 or with other GPIO inputs?