I want to use an esp32 to measure current and voltage, I don’t have high accuracy requirements and want to save costs, so I don’t plan to use a separate measurement chip such as INA226.
esp32 has two adc components, but only one will work when wifi enabled.
You’re misinterpreting the docs. adc2 is a set of pins, with Esp 32’s you can use multiple pins. You can only use pins labeled adc1 when wifi is used. Typically GPIO32 - GPIO39. See the chart for your specific board type.
I think what was meant was whether you can dynamically select which pin to use with adc1. Get the measurement using one pin and then swap to another pin, to get the other measurement, which unfortunately isn’t possible afaik.
I did use adc2 once by turning wifi off while doing the reading, and turning wifi on again afterwards. It was a bit of a kludge though.
Btw. It is possible to use adc2 with wifi on Esp32-s2, however wifi has higher priority.