Skip to content

Commit

Permalink
Made the Webserver globally accessible.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMueller2003 committed Jan 8, 2024
1 parent d3c6df5 commit e4c6906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ESPUI.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ class ESPUIClass
return accelerometer(label, [callback, userData](Control* sender, int type){ callback(sender, type, userData); }, color);
}

AsyncWebServer* WebServer() {return server;}
AsyncWebSocket* WebSocket() {return ws;}

protected:
friend class ESPUIclient;
friend class ESPUIcontrol;
Expand Down

0 comments on commit e4c6906

Please sign in to comment.