* created new API functions

* bound html through ajax to parse setup page (not finished now)
* added compression option for static html to python module
* removed generated h-file from index (redundant information), they will be created on compile time
This commit is contained in:
lumapu 2022-08-27 02:27:32 +02:00
parent 2556197509
commit 13c88b3626
13 changed files with 347 additions and 213 deletions

View file

@ -10,9 +10,11 @@
#include "ESPAsyncTCP.h"
#include "ESPAsyncWebServer.h"
#include "app.h"
#include "api.h"
#include "tmplProc.h"
class app;
class api;
class web {
public:
@ -22,6 +24,8 @@ class web {
void setup(void);
void loop(void);
void onConnect(AsyncEventSourceClient *client);
void showIndex(AsyncWebServerRequest *request);
void showCss(AsyncWebServerRequest *request);
void showFavicon(AsyncWebServerRequest *request);
@ -49,11 +53,13 @@ class web {
String showUpdateFormCb(char* key);
AsyncWebServer *mWeb;
AsyncEventSource *mEvts;
config_t *mConfig;
sysConfig_t *mSysCfg;
char *mVersion;
app *mMain;
api *mApi;
};
#endif /*__WEB_H__*/