Is it possible to have both running on the ESP32?
I followed the
ESP32 Web Server with BME680 – Weather Station (Arduino IDE) guide and would like to add the code for OTA updates.
Can both WiFi Station and AP run at the same time?
I have never done it but it should work. Just combine the relevant sections from https://randomnerdtutorials.com/esp32-async-web-server-espasyncwebserver-library/ and https://randomnerdtutorials.com/esp32-over-the-air-ota-programming/. From what I see you just need to add a “server.on” for OTA updates.
Follow Steve’s advice and came back if you need further help.