You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your contribution, as someone new to the ESP32 environment this set of WebServer examples was really helpful!
In using AdvancedWebServer, I have a bit of javascript to reload the SVG every 250msec, and then added in some quick code to receive data from a sensor and populate the graph with this data. Every 2000msec the data is read and stored in a buffer, and on request for the SVG the contents of the buffer are used for the Y values instead of the random values. I believe the code to read the sensor is fairly light weight (tens to a few hundred msec).
I've noticed that when actually reading real values, the server ends up missing most of the requests. It seems to work a bit better when reducing the update from 250msec to 1000msec, and placing the server and sensor code in separate FreeRTOS tasks doesn't appear to help much.
My question is: is there a canonical or suggested method for pairing this webserver with other tasks that require non-zero time, so that it doesn't miss requests?
thanks again,
Peter
The text was updated successfully, but these errors were encountered:
Thanks for your contribution, as someone new to the ESP32 environment this set of WebServer examples was really helpful!
In using AdvancedWebServer, I have a bit of javascript to reload the SVG every 250msec, and then added in some quick code to receive data from a sensor and populate the graph with this data. Every 2000msec the data is read and stored in a buffer, and on request for the SVG the contents of the buffer are used for the Y values instead of the random values. I believe the code to read the sensor is fairly light weight (tens to a few hundred msec).
I've noticed that when actually reading real values, the server ends up missing most of the requests. It seems to work a bit better when reducing the update from 250msec to 1000msec, and placing the server and sensor code in separate FreeRTOS tasks doesn't appear to help much.
My question is: is there a canonical or suggested method for pairing this webserver with other tasks that require non-zero time, so that it doesn't miss requests?
thanks again,
Peter
The text was updated successfully, but these errors were encountered: