ESP8266 OTA (SOLVED)
I followed this guide
to get OTA working on ESP8266. I can flash and re-upload (over WIFI) BasicOTA.ino without issues. Once I upload GatewayESP8266OTA.ino and afterwards try to upload another sketch I receive message "[ERROR]: No Answer".
I am using Arduino IDE 1.6.9, MySensors 2.0.0, ESP Boards 2.3.0.
@niccodemi OTA needs to be added to the gateway sketch (and all other sketches where you want OTA capability).
From the instructions you linked to:
Note: To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use BasicOTA.ino as an example.
@mfalkvidd ok, I'll try. I thought that's what GatewayESP8266OTA sketch was supposed to do.
@niccodemi yes you are right. Sorry about that. The OTA stuff is already included in GatewayESP8266OTA. Then it should work.
What output do you get on serial when you try updating?
Have you modified GatewayESP8266OTA or are you using the example without modification? (except setting ssid and password)
Does the gateway work (can you ping it, does it forward messages)?
@mfalkvidd I reinstalled Arduino IDE and libraries and that seems to fixed the issue.
Strange. But great that it got fixed
Just to share my experience with OTA for the ESP8266 and VisualMicro for future reference, I think that there is no need to create a new topic as the search button works pretty well
Setting the IP of the ESP8266 works pretty well but I was not able to make the bonjour service to work maybe because of windows 10 ou Kaspersky firewall.
The Issue that I've faced was after uploading the sketch, the ESP8266 did just stuck at boot or entered a bootloop and I've got this message "rst cause:4, boot mode:(3,6)"
If you're facing the same or a similar issue I recommend checking your power source, I've added a 470uF capacitor between Vin and GND and start using a proper power supply even when connected to USB and the problem is gone.
Hi, is it okay if I ask how can I embed OTA code to my arduino sketch for me to be able to upload over and over again? Im working for Temperature Sensor. Thanks you.