arduino / ArduinoCore-megaavr

Arduino Core for the ATMEGA4809 CPU
103 stars 62 forks source link

Long Response Times for XMLHttpRequest(); #74

Closed ghost closed 3 years ago

ghost commented 3 years ago

I am using the Uno WIFI Rev2 as a temperature controller with web interface. The web page requests data using an XMLHttpRequest(); every second. Things run but I do see quite often a very long response time from the Audino about 2 seconds. This is worse if it is configured as an access point as opposed to a server. Since I'm running a processing loop to keep track of times and control the temperature there is a fair bit of processing going on within the loop. It takes about 40 msec of processing time per loop.

I have stripped out my web page and Audino processing into a seperate file to be sure I did not have a problem with my processing code. That file is attached. I have also attached a screenshot of the web page running on Chrome with the developers tools open to a long delay.

Is the processing I'm seeing as good as I can expect from the Uno WIFI Rev2?? IE am I going to see these delays or is there a bug in the wifinina library? I do have two Uno WIFI Rev2 boards both with up to date firmware as of 7/2/2020. One of the boards is much worse than the other. I do note that the temperature control loop continues to work as the web interface struggles. Thanks, -tim

xmltest.zip

ghost commented 3 years ago

No response so I'm closing the issue. -tim