Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By zeroK
#29517 He freedom2000 that is the same example ;)

In the examples I also found the ESP8266Webserver/WebUpdate which is a simple webpage hosted on the ESP8266 where you can update a new firmware image. I have a 100% success rate* using this method (*Only tested it once :D 8-) )

https://github.com/esp8266/Arduino/blob ... Update.ino
User avatar
By Mmiscool
#29550 Thanks for all the info.

Is there any thing special i have to do with a bin file created by the arduino ide to make this work.

Or any special thing that have to go on with the web server. I attenpted using the code from the post above with the file hosted on my iis server. Got a failuer every time.
User avatar
By zeroK
#29599 No I did not do anything special on the server side.

You can enable debugging in httpUpdate

Go to the folder where httpUpdate.h is. (On windows in %appdata%/Arduino15\packages\esp8266\hardware\esp8266\1.6.5-1106-g8253b82\libraries\ESP8266httpUpdate\src)

There is comment line with DEBUG_HTTP_UPDATE change it into: #define DEBUG_HTTP_UPDATE(...) Serial.printf( __VA_ARGS__ )

Now you have a bit more information about the update process
User avatar
By penatenjoe
#29638 I tried the WebUpdate sketch but cannot make it work even once. I do see the webpage from the ESP and can select a file and push the upload-button. But I keep getting "lmac.c 662" in the terminal and then the chip reboots. In my tests I used the stable version (July 23) and tried to upload the Blink sketch. Does someone have a suggestion what I do wrong?
For the DNS_SD_Arduino_OTA sketch it appears I have to have a telnet server which is beyond my skills... any suggestions on how to get started?
Here's the terminal output:
Booting Sketch...
Ready! Open http://esp8266-webupdate.local in your browser
Update: BlinkWithoutDelay.cpp.bin
lmac.c 662

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld