-->
Page 1 of 1

Send header in advanced ota

PostPosted: Fri May 11, 2018 2:42 pm
by m.maazi
Hi.
I'm trying to make this method work on my esp chip:
https://github.com/esp8266/Arduino/blob/master/doc/ota_updates/readme.rst#advanced-updater-1
I need to send a proper header to get my esp updated. Header must contain this information:
Code: Select all[HTTP_USER_AGENT] => ESP8266-http-Update
[HTTP_X_ESP8266_STA_MAC] => 18:FE:AA:AA:AA:AA
[HTTP_X_ESP8266_AP_MAC] => 1A:FE:AA:AA:AA:AA
[HTTP_X_ESP8266_FREE_SPACE] => 671744
[HTTP_X_ESP8266_SKETCH_SIZE] => 373940
[HTTP_X_ESP8266_SKETCH_MD5] => a56f8ef78a0bebd812f62067daf1408a
[HTTP_X_ESP8266_CHIP_SIZE] => 4194304
[HTTP_X_ESP8266_SDK_VERSION] => 1.3.0
[HTTP_X_ESP8266_VERSION] => DOOR-7-g14f53a19

I don't know anything about sending http header in this format.
could you please help me?
thanks

Re: Send header in advanced ota

PostPosted: Fri May 11, 2018 7:57 pm
by m.maazi
Solved! :mrgreen:

Re: Send header in advanced ota

PostPosted: Sat May 12, 2018 8:23 pm
by QuickFix
m.maazi wrote:Solved! :mrgreen:

Your solution could help others in the future that are having the same problem.
Please share your knowledge. :idea: