I've followed the impressive work of Juraj Andrássy and have had mild success trying to OTA with the mega that has on board ESP8266. The board connects to my wifi, I can ping it but when I try to upload using a command line (I can't seem to add the board to my IDE via wifi) I see the following message:
Connecting to board ... done
Uploading sketch ... done
Flashing sketch ... Error flashing the sketch
It seems that as soon as the bulk of the data tries to transfer via wifi the mega or the ESP resets and all hope is lost.
Am using latest ArduinoOTA, WiFiEspOTA, MegaCore ATMega2560 and I flashed the ESP to V1.7 with ESP8266_NONOS_SDK-3.0.4 using the settings below. I'm hoping someone cleverer than me might be able to help?
I can't get the arduino to appear in my IDE, have tried almost everything. I can ping it from the command line but I'm lost beyond that.
So I'm using command line to upload which could be the problem:
arduinoOTA -address 192.168.0.107 -port 65280 -username arduino -password password -sketch "C:\Users\User\AppData\Local\Temp\arduino_build_656199/OTA-TEST-FIXED.ino.with_bootloader.bin" -upload /sketch
I've tried all possible password and username possibilities with and without ""
Unless the passwords match with the syntax I'm using it will fail at the flashing stage.
Only when they are as I have them does the flash succeed and lead onto an authorisation failure.
Flashing sketch ... done
Error flashing the sketch:Unauthorized
Is there something clever with the optiboot flashing that I've missed? Could there be something in the sketch it doesn't like? Are there security settings on my wifi that intefere? Has anyone suceeded with OTA with this robotdyn-mega-onboard-ESP8266?