I've been successful with OTA programming ESP32s. My problem is that any script that uses the OTA code seems to REQUIRE the WiFi be present to operate. That is, in the absence of WiFi, the unit reboots constantly. I get the same behavior using the Arduino sample BasicOTA script, or any ESP32 specific scrips I've found. The OTA upload and my own scripts work fine, as long as WiFi is present, otherwise, this is repeated forever...
Connection Failed! Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
If I bring the device in range of the wifi while this is occurring, the script starts up & runs fine.
I'd like my scripts to run with or without WiFi present, but have the option to bring it in range of the OTA specified WiFi to upload code.
Thanks for any advice.