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.