mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-28 16:26:12 +02:00
* 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:
parent
2556197509
commit
13c88b3626
13 changed files with 347 additions and 213 deletions
|
@ -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__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue