-->
Page 7 of 11

Re: I/O monitor with auto refresh and display update

PostPosted: Sat Apr 29, 2017 3:32 pm
by Mmiscool
The other option is to do a cold and redraw the GUI for each change. It will take slightly longer but will probably eliminate your memory problem.

Re: I/O monitor with auto refresh and display update

PostPosted: Sun Apr 30, 2017 12:43 am
by Pierre
Thanks for the reply, but could you maybe explain what you mean in more detail with the possible solution? Unfortunately I am a bit new to the environment.
Regards
Pierre

Re: I/O monitor with auto refresh and display update

PostPosted: Sun Apr 30, 2017 11:51 am
by Electroguard
I already tried to break the program into as many branches as possible without luck.

In case I never made the point well enough... it wasn't for breaking the script into branches, it was for splitting the web content into multiple smaller web-page branches each with its own WAIT instruction to send lesser amounts of web content to the browser each time.

Cos as far as Esp_Basic is concerned, a web page consists of all web instructions issued by the script and accumulated prior to being sent to the browser by the WAIT command.

To highlight the point further - the web-content buffer might have no problems handling a single web component on a web page no matter how many pages were available because it would only ever have to deal with one component at any time, whereas if all those single-component web pages were squeezed onto a single page they could collectively overload the buffer.

Re: I/O monitor with auto refresh and display update

PostPosted: Sun Apr 30, 2017 1:02 pm
by Pierre
Thanks I will try that as well. In the meantime I decided to ditch the web interface to enter the switch on and of times and hard code them into constants. This saves a lot of web interface and other code. The only disadvantage is that I need to change the times in the code when I want to change the switch on or off times.
Regards
Pierrre