1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-24 17:30:55 +00:00

Merge pull request #285 from MartinMueller2003/master

Made WebServer and WebSocket globally accusable via access functions.
This commit is contained in:
Martin Mueller 2024-01-10 09:19:25 -05:00 committed by GitHub
commit 7508e034be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;