ESP32-Cam analog input read / temporal wifi stop

I am currently developing with ESP32-Cam.
I need to read an analog input, which is the problem according to many and me now.

What I found out:
people say that if you doesn't need SD card reader, you can use it's pins which are
image
however none of it works even thought I'm not using SD card.

Then I read that ADC2 is used by wifi, so I need to disable wifi in order to analogRead. I can confirm that. When I don't start wifi, I am able to read by setting pin input and read it:

  pinMode(VOC_ANALOG_PIN, INPUT);
  return analogRead(VOC_ANALOG_PIN);

it's GPIO2 for example when wifi is disabled.

Now my question is: how do I disable and re-enable wifi?
I am using tzapu/WiFiManager and it works well for me. However when I issue esp_wifi_stop(); from #include <esp_wifi.h> it stops the wifi, but erases AP credentials from ESP32 so I can not just re-connect with WifiManager's autoConnect(..).

Can somebody advice on how to temporarily disable WiFi and reconnect it back after an analogRead, please? Is is really the only way (which it seems to me) to read analog input with WiFi on?

Thanks!

Maybe a different cam would be easier..
freenove-esp32-wrover-cam-pinout
Looks promising..
Shows 2 pins on ADC1 that maybe could be used..

good luck.. ~q

yeah, that look better, and I see the PSRAM in the specification in that link.
I went by the "similar one", I have a thread about it here. mine tells me, it doesn't have PSRAM which (as I understand it) would result in lower picture quality (something to do about it? I'm sending photo data out as base64 on the mqtt channel), however that is why I turned to ESP32-Cam, but I need that analog input without a doubt.

so this is the sequence that disables and then re-enables previously saved AP connection:

disable:

void disconnectWifi() {
  esp_wifi_stop();
}

re-enable:

void reconnectWifi() {
    wifi_init_config_t wifiInitConfig = WIFI_INIT_CONFIG_DEFAULT();

    if (esp_wifi_init(&wifiInitConfig) != ESP_OK){
        printf("Can't run esp_wifi_init()...\n");
        return;
    }
    else {
        printf("esp_wifi_init() running...\n");
    }

    esp_wifi_set_mode(WIFI_MODE_STA);
    esp_wifi_start();
    esp_wifi_connect();

    wm.autoConnect("AutoConnectAP");  // password protected ap
}