-->
Page 3 of 22

Re: ESP8266 with easy webconfig

PostPosted: Sat Jul 18, 2015 9:29 am
by ridge
Thanks to all who contribute to this fun device!

My ESP_WebConfig installation on an ESP-12 almost works.
The 192.168.4.1/admin.html shows static text and then resets the esp8266 watch dog timer.
The 192.168.4.1 example.h page shows static text only, and does not reset the watchdog.

I am using Firefox browser. Is it supported?

This is the output from the Arduino Serial console:

Refreshing...
FreeMem:23488 5:28:42 2106.2.7
style.css

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

wdt reset
load 0x40100000, len 28780, room 16
tail 12
chksum 0x56
ho 0 tail 12 room 4
load 0x3ffe8000, len 1532, room 12
tail 0
chksum 0xe0
load 0x3ffe8600, len 4748, room 8
tail 4
chksum 0xdd
csum 0xdd
r�Starting ES8266
Reading Configuration
Configurarion Found!
Configuring Wifi
HTTP server started
Refreshing...
FreeMem:23488 5:28:17 2106.2.7
Refreshing...


ESP_WebConfig looks like it will be my favorite template once I can get it running.

Thanks!

Re: ESP8266 with easy webconfig

PostPosted: Sat Jul 18, 2015 11:30 am
by proteus74
ridge wrote:Thanks to all who contribute to this fun device!

My ESP_WebConfig installation on an ESP-12 almost works.
The 192.168.4.1/admin.html shows static text and then resets the esp8266 watch dog timer.
The 192.168.4.1 example.h page shows static text only, and does not reset the watchdog.

I am using Firefox browser. Is it supported?

This is the output from the Arduino Serial console:

Refreshing...
FreeMem:23488 5:28:42 2106.2.7
style.css

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

wdt reset
load 0x40100000, len 28780, room 16
tail 12
chksum 0x56
ho 0 tail 12 room 4
load 0x3ffe8000, len 1532, room 12
tail 0
chksum 0xe0
load 0x3ffe8600, len 4748, room 8
tail 4
chksum 0xdd
csum 0xdd
r�Starting ES8266
Reading Configuration
Configurarion Found!
Configuring Wifi
HTTP server started
Refreshing...
FreeMem:23488 5:28:17 2106.2.7
Refreshing...


ESP_WebConfig looks like it will be my favorite template once I can get it running.

Thanks!


Sometimes I have this issue too when the network-connetion between the ESP and the router isn't well. The problem I think is, when you load the admin.html then is loads the style.css.h, even when the browser sees the row with the style-attribute and send this request to the esp, but the esp is still working on the admin.html and gets a second reqeust...then it might crashes.

But I'm also looking for a solution...may I load the stylesheet via javascript, when the page has done loading or something like this.


Greetings,

proteus74

Re: ESP8266 with easy webconfig

PostPosted: Sat Jul 18, 2015 8:08 pm
by ridge
WebConfig is now working for me and the built-in microAjax capability is very fast!

To fix, I went through all the files and removed all PROGMEM keywords.
I do not know why PROGMEM breaks things on my system, but I am happy to have this template available for further program development!

Removing PROGMEM did bring the FreeMem heap size down to ~12000. Plenty of room still for my applications.

Greetings,
ridge

Re: ESP8266 with easy webconfig

PostPosted: Sat Jul 18, 2015 10:07 pm
by SwiCago
The esp does not like more than one request at the same time. Better to put CSS inline with style tags or use ajax to load it after the page has been servered.
I use ajax to serve an image gallery from SD via esp. When image 1 finishes, ajax gets image 2 and so forth until all images have been served.