-->
Page 1 of 2

Web gui size

PostPosted: Fri Jan 13, 2017 8:25 pm
by robert badiduwitz
Are there any hard limits to the amount of gui items (i.e., textbox, listbox, dropdown, etc.) that can be used on any given web page that espbasic can serve up? I don't know if the page is stored in a buffer or something that has a limit to its size? Can a webpage using only native espbasic items only, including wprints etc, be too large and cause the unit to not be able to connect a web socket? Any help or insight to this would be greatly appreciated.

Re: Web gui size

PostPosted: Fri Jan 13, 2017 8:59 pm
by Mmiscool
When using esp basic a catched copy of the page is produced and stored in ram. When a user connects to the device with the web browser it will attempt to send that page. You can run out of ram by using wprint all the time. You can use the ramfree() function to see how much ram is being used and to diagnose when you are nearing the limit that the esp will simply return a blank page.

Re: Web gui size

PostPosted: Sat Jan 14, 2017 4:25 am
by mariolatronico
hi,
it is interesting to study the trend of ramfree with memorygauge code by Electroguard.
see post http://www.esp8266.com/viewtopic.php?f=42&t=13024&start=4

Re: Web gui size

PostPosted: Sat Jan 14, 2017 10:38 am
by robert badiduwitz
Thanks for that info. I will give the ramfree a shot. At what level does the espbasic start to not work, i.e., how much free ram does espbasic need to run correctly at all times?