Skip to content

Commit

Permalink
send sampling interval
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesgiguere committed Jan 4, 2024
1 parent 6541dad commit cf70ec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpio_viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ class GPIOViewer
html += "<body><div class='grid-container'>\n";

html += "<header class='header'>";
html += "<div class='centered-text' id='sampbox'>Sampling Interval is " + String(samplingInterval) + " ms</div>";
html += "</header>";

// Image
Expand All @@ -213,6 +212,9 @@ class GPIOViewer
String ip = "<script>var ip = '" + WiFi.localIP().toString() + "';</script>";
html += ip;

String sampling = "<script>var sampling_interval = '" + String(samplingInterval) + "';</script>";
html += sampling;

html += "<script>var freeSketchSpace = '" + freeRAM + "';</script>";

html += "</body></html>";
Expand Down

0 comments on commit cf70ec5

Please sign in to comment.