ESP8266 Developer Zone The Official ESP8266 Forum 2017-10-21T10:26:19+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=6869 2017-10-21T10:26:19+08:00 2017-10-21T10:26:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6869&p=16551#p16551 <![CDATA[Re: Source code for firmware in FOTA_Demonstration_EN example]]>
Just wanted to report that the demo source is a great start, but it was missing a couple of things:

1) system_upgrade_reboot(); needs to be placed in the check for upgrade_flag==true in user_esp_platform_upgrade_cb.
2) I uncommented out the #if 0 block that switches between user1.bin and user2.bin and then changed the os_sprintf line to the following:
os_sprintf(server->url, "GET /%s HTTP/1.0\r\nHost: "IPSTR":%d\r\n"pheadbuffer"",
user_bin, IP2STR(server->ip),
80);

The path was hardcoded before so I just used the user_bin variable instead. I used the Mini-Webserver PC app that's mentioned in the appnote (ESP8266_FOTA_Demonstration__EN.pdf) to test it and it works.

Took me few hours to debug this even with the head start so I hope it can help someone.

Statistics: Posted by winzin311 — Sat Oct 21, 2017 10:26 am


]]>
2017-10-19T13:18:06+08:00 2017-10-19T13:18:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6869&p=16524#p16524 <![CDATA[Re: Source code for firmware in FOTA_Demonstration_EN example]]>

Statistics: Posted by winzin311 — Thu Oct 19, 2017 1:18 pm


]]>
2017-10-11T13:53:07+08:00 2017-10-11T13:53:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6869&p=16366#p16366 <![CDATA[Re: Source code for firmware in FOTA_Demonstration_EN example]]> demo, but it was uploaded 2 years ago, not sure if it can still work now :? . But you can have a try.

Statistics: Posted by Her Mary — Wed Oct 11, 2017 1:53 pm


]]>
2017-10-11T05:49:06+08:00 2017-10-11T05:49:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6869&p=16349#p16349 <![CDATA[Source code for firmware in FOTA_Demonstration_EN example]]>
I'm looking for the firmware SOURCE CODE in your "FOTA_Demonstration_EN" example. Could you point me to this?
It would be helpful to be able to reference this for integration FOTA into my own firmware.

Thank you.

Statistics: Posted by winzin311 — Wed Oct 11, 2017 5:49 am


]]>