1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 22:50:55 +00:00

Made the Webserver globally accessible.

This commit is contained in:
MartinMueller2003 2024-01-08 08:43:10 -05:00
parent d3c6df5cfa
commit e4c6906723

View File

@ -232,6 +232,9 @@ public:
return accelerometer(label, [callback, userData](Control* sender, int type){ callback(sender, type, userData); }, color); return accelerometer(label, [callback, userData](Control* sender, int type){ callback(sender, type, userData); }, color);
} }
AsyncWebServer* WebServer() {return server;}
AsyncWebSocket* WebSocket() {return ws;}
protected: protected:
friend class ESPUIclient; friend class ESPUIclient;
friend class ESPUIcontrol; friend class ESPUIcontrol;