Skip to content

Commit

Permalink
send ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesgiguere committed Jan 4, 2024
1 parent 49224e3 commit 6541dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpio_viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ class GPIOViewer
String eventSource = "<script>var source = new EventSource('http://" + WiFi.localIP().toString() + ":" + String(port) + "/events');</script>";
html += eventSource;

String ip = "<script>var ip = '" + WiFi.localIP().toString() + "';</script>";
html += ip;

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

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

0 comments on commit 6541dad

Please sign in to comment.