Closed
Description
I tried lot and found that using LIGHT_SLEEP_T mode with ArduinoOTA make Uploading Error generally. This due probably lowered network speed and there are missing packets at LIGHT_SLEEP_T mode.
You probably make successful OTA upload but with ~%10 chance.
For fixing you need to add
wifi_set_sleep_type(NONE_SLEEP_T);
line when detected OTA request at function:
ota_server.handle();