ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Avoncliff
#72073 Update.
I think there is a problem in cgiflash.c with user2.bin updates, I get some success if I use the httpd.ota file.
I can now repeatedly upload files to either user1 or user2 using the ota file. There still appears to be a problem with the web pages, in as much as they do not appear to update every time.
I will look at that later.
User avatar
By htwtsang
#72094
Avoncliff wrote:Update.
I think there is a problem in cgiflash.c with user2.bin updates, I get some success if I use the httpd.ota file.
I can now repeatedly upload files to either user1 or user2 using the ota file. There still appears to be a problem with the web pages, in as much as they do not appear to update every time.
I will look at that later.


Remember to make sure you're refreshing your cookies everytime you open the webpage
User avatar
By Avoncliff
#72251 I have found when the user2 code is running it is using the web pages from user1. Looking in espfs.c I can see a fixed offset being used for calculating absolute addresses so I think this is the problem, but I have not gone into any detail yet.
There is an option for fixed location web pages, but i am not sure how these would be updated OTA.
User avatar
By kylix
#72526 I'm also having problems with OTA on a NodeMCU, 4MB board.
If I use the "separate" option, it all works OK.
When I use the "OTA" option in makefile, the firmware gets compiled with "make clean all flash" and after "make clean all httpflash".
I can access the board at 192.168.4.1 but the static files are not loaded (index.html and so on....)