mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-15 00:51:38 +02:00
added login / logout
prepared static IP storage and disable inverter IMPORTANT: new memory layout, your inverter settings will be lost
This commit is contained in:
parent
56b8096bed
commit
6a6d522d3b
11 changed files with 290 additions and 31 deletions
|
@ -29,10 +29,15 @@ class web {
|
|||
|
||||
void setup(void);
|
||||
void loop(void);
|
||||
void tickSecond(void);
|
||||
|
||||
void setProtection(bool protect);
|
||||
|
||||
void onConnect(AsyncEventSourceClient *client);
|
||||
|
||||
void onIndex(AsyncWebServerRequest *request);
|
||||
void onLogin(AsyncWebServerRequest *request);
|
||||
void onLogout(AsyncWebServerRequest *request);
|
||||
void onCss(AsyncWebServerRequest *request);
|
||||
void onApiJs(AsyncWebServerRequest *request);
|
||||
void onFavicon(AsyncWebServerRequest *request);
|
||||
|
@ -58,6 +63,8 @@ class web {
|
|||
|
||||
AsyncWebServer *mWeb;
|
||||
AsyncEventSource *mEvts;
|
||||
bool mProtected;
|
||||
uint32_t mLogoutTimeout;
|
||||
|
||||
config_t *mConfig;
|
||||
sysConfig_t *mSysCfg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue