Hello,
i tried to add an animated gif image on my webserver, animated gif works OK ! but i don’t get anymore all data on I2C Bus , Others, as DS18B20,DHT1 Temp & Humidity are OK, but not BMP085 and LCD SSD1306 … If a replace the animated gif (size is 100Ko) by a normal still picture 3Ko .. I2C data and LCD OLED are OK.. it seems no enough ressources in ESP32 ? how to check efficiency of ESP32, the % of load ?
after modified the duration of this *.Gif => new is 20x100mS => 2sec (instead of 20×150=> 3sec)
I2C data arent OK on charts and on LCD OLED display….
Nota : i have a delay of 2500mS in the loop to get I2C data.. and 10 sec delay for the webserver
so, probleme is solved ,
but my question keep open :
How to see,to measure the load of ESP2 ..or the Highchart server ?
Where are the limits ..
Concerning the number of data on highcharts, and maximum datas on X axis ..
We can access on each values on the charts, so where are stored the datas ..
not inside the ESP32 , it means on Highchart server ?
limits ?
Hi.
What example did you follow to create the charts? Most of our examples don’t save the data points. They are not saved on the ESP32 (unless you write code to do that). They are probably saved on the web browser client session. If you refresh the web page, the data points are gone. Or if you open the web server in a new tab, the older data points are not there.
Check ESP32 free heap:https://techtutorialsx.com/2017/12/17/esp32-arduino-getting-the-free-heap/
I hope this helps.
Regards,
Sara
Hello,
Now, i am doing a test with a chart
with 1440 positions on values on X axis and 6 datas (6 differents Y axis)
+ 2 Gauges + 2 pictures… refresh time is 60sec
i will wait tommorow 12:00 AM to see the result …
to check if the chart contains 1440×6 => 8640 values
( i don’t use now the possibility to store data via SPIFF)
Hello,
Now, (24/06) i am doing a test with a chart
with 1440 positions on values on X axis and 6 datas (6 differents Y axis)
+ 2 Gauges + 2 pictures… refresh time is 60sec
i will wait tommorow 12:00 AM to see the result …
to check if the chart contains 1440×6 => 8640 values
( i don’t use now the possibility to store data via SPIFF)
display capture
after reading the article on heap .. i am not convinced ..
for PIC MCU or C standard program , Heap is a special protected area
wich is managed by special instructions to delimite the size , use or free this area ..etc .. i used Heap area for MCU PIC18F26K22 or 18F27K42
to use big fonts for LCD ..This Heap size is reserved/removed from the total Ram amount .
25/06/2022
Test started at 11H58 …. until ..Problemo at 17H45 -> 5H47 -> after 347 min
347 * 6 = 2082 datas
Program is frozen => oblige to do a Reset to restart application.
*****************************************************************************
Console Message :
message ping
script.js:388 new_readings {"DS18B20":"25.00","Cpt":"52","Pression":"985.80","Temperature":"25.50","Humidity":"58.20","MCP23017":"129"}
Array(6)
0: "DS18B20"
1: "Cpt"
2: "Pression"
3: "Temperature"
4: "Humidity"
5: "MCP23017"
length: 6
6
script.js:327 1656150151724
script.js:330 25
script.js:327 1656150151766
script.js:330 36
script.js:327 1656150151795
script.js:330 985.81
script.js:327 1656150151833
script.js:330 NaN
script.js:327 1656150151869
script.js:330 NaN
script.js:327 1656150151897
script.js:330 129
script.js:380 message hello!
highcharts.src.js:31367 [Violation] 'setTimeout' handler took 106ms
i fund this:
https://www.highcharts.com/forum/viewtopic.php?f=9&t=46145
Violation ‘click’ handler took ms
.. You can disable animation, which highly improves the performance:
…spline is not a boostable series type – use line instead.
so i modified my script.js
series: [
{
name: 'DS18B20 #1',
type: 'spline', <--- replaced by 'line'
and on Gauges:
on Gauge :
animationDuration: 1000, <-- replaced by 100
but ,i still get message
[Violation] ‘setTimeout’ handler took …
is it an important défault ? because no effect on chart !
does other people get this kind of message ?