I cannot get OTA updates to work on my ESP32 using the Arduino IDE (and I've also tried PlatformIO in VS code).
I'm using the standard sketch from this site (and many identical others).
When I try to update using OTA, here's what I get:
Sending invitation to 10.0.0.245
Authenticating...OK
12:12:49 [ERROR]: No response from device [after a short while]
If I connect the device to a USB/serial terminal, here's what I get:
Start updating sketch
Progress: 0% [never proceeds beyond 0%]
Error[2]: Connect Failed [after a short while]
Error[4]: End Failed
My partition table has two OTA partitions, so this is not the problem.
I've tried with and without my firewall, with and without my anti-virus, with and without the USB connected, with and without a password, with and without setting the port, with and without a manual reset after loading the sketch - always the same.
It's not an initial WiFi connection problem - the device IP is recognized as a port, the password is verified if I use one and the initial connection is made.
Any ideas? Thanks