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
I'm using asynchronous webserver on my ESP32 which has a real-time critical application to measure energy at exact set intervals. At first, I suspected my real-time routine was interrupted by the async server and hence giving erroneous data. However when I look at the data sent by my ESP to the web client, it can be seen in the attached screenshot which shows the browsers' console output, that the data sent is correct, however the chart shows a spike at 9h57. When I refresh the chart, the spike dissapears, leading me to believe there is a bug in the real-time Apexchart?
I'm using the following statement to append data to the chart. Also, this happens at a rate of maybe 1/50 samples. Anyone else having experienced this kind of problem.
chartLine1.appendData([
{
data: [[CHART1_time, AP1acc ]] }, {
data: [[CHART1_time, AP2acc ]] }, {
data: [[CHART1_time, AP3acc ]] }, {
data: [[CHART1_time, PWR.VAMX]]
}
])
I'm trying to attach an image to this discussion but seem to be unable to do so.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using asynchronous webserver on my ESP32 which has a real-time critical application to measure energy at exact set intervals. At first, I suspected my real-time routine was interrupted by the async server and hence giving erroneous data. However when I look at the data sent by my ESP to the web client, it can be seen in the attached screenshot which shows the browsers' console output, that the data sent is correct, however the chart shows a spike at 9h57. When I refresh the chart, the spike dissapears, leading me to believe there is a bug in the real-time Apexchart?
I'm using the following statement to append data to the chart. Also, this happens at a rate of maybe 1/50 samples. Anyone else having experienced this kind of problem.
chartLine1.appendData([
{
data: [[CHART1_time, AP1acc ]] }, {
data: [[CHART1_time, AP2acc ]] }, {
data: [[CHART1_time, AP3acc ]] }, {
data: [[CHART1_time, PWR.VAMX]]
}
])
I'm trying to attach an image to this discussion but seem to be unable to do so.
Beta Was this translation helpful? Give feedback.
All reactions