Provisioning makes analog stop

Sir
This project is working!
I can read the ANALOG and PRINT the correct values, but, when i do the provisioning to SSID/PASS, the ANALOG is always reading 0
Is that a bug ? Some tip ?

without provisioning

So if you are trying to use any of the pins from ADC channel 2 starting wifi blocks their usage as that channel is completely consumed for use by the WiFi system.

This is just cut from the linked above doc page.

Unavailable ADC2 During Wi-Fi Connection

The ESP-IDF SDK (and possibly the ESP32 hardware) has a limitation where a Wi-Fi connection interferes with the device’s ability to read data from an ADC pin reading from ADC channel 2.

The I/O pins affected by this include the following:

IO27
IO26
IO25
IO15
IO14
IO13
IO12
IO4
IO2
IO0

Thank so much! :slight_smile:

I had tried the IO4 too, and had got the same problem!

Thank you! I will test on others :slight_smile:

Its working now!
Thanks a lot