It has been discussed recently here, if I remember well you need to disable captive_portal.
For the ADC it might be more complicated. What board you have and why IDF?
Thanks for reply, about web_server. About ADC I have an AZ Delivery ESP32 (4Mb flash memory) which drive my home made weather station, since I recently added two Mi Flora sensors nearby I re-flash (via serial interface) it adding BLE tracker and proxy so I change framework from arduino to idf. ADC is now deprecated and it is for determine wind direction.
Later I’ll post log.