Re: ARDUINO IDE OTA EXAMPLE
Posted: Wed Nov 11, 2015 12:27 pm
woah, you are always a couple of steps ahead. Thanks for the hints. Ok, just making sure I understood: If I upload the sketch but do not see the board listed there are two options a) wait 10 min or b) restart the IDE. I didn't try the first option but I thought I tried the second - but apparently not with a working sketch. Based on what I tried and what you wrote my guess is that you have to include the telnet code for setting up the communication. Can you say how the minimal code looks like? Maybe one has to also keep the Telnet.read() code to ensure data is not stuck in a read buffer?
EDIT:
Maybe someone can also help me my making the attached script work? As mentioned above OTA update failed if I added a simple webserver to the sketch. When I open the IP of the ESP8266 in a browser the served page runs a script which asks for data once per second. During an OTA update at some point one can see that there is no data coming anymore but the update process terminates with an error. With no browser window running the script it worked fine. I suspect it may be good if I could stop the server on the ESP but don't know how to do that.
I think the tested scenario could happen in a real application as well so I appreciate any help to solve this.
Thanks again, Bernd
EDIT:
Maybe someone can also help me my making the attached script work? As mentioned above OTA update failed if I added a simple webserver to the sketch. When I open the IP of the ESP8266 in a browser the served page runs a script which asks for data once per second. During an OTA update at some point one can see that there is no data coming anymore but the update process terminates with an error. With no browser window running the script it worked fine. I suspect it may be good if I could stop the server on the ESP but don't know how to do that.
I think the tested scenario could happen in a real application as well so I appreciate any help to solve this.
Thanks again, Bernd