mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-01 10:11:37 +02:00
ESP32 support added
* ESP32 adjustments, compiles and runs * Changed gitignore to ignore debug log files
This commit is contained in:
parent
9ca1792480
commit
0ad53d56d8
13 changed files with 153 additions and 50 deletions
|
@ -7,8 +7,13 @@
|
|||
#define __WEB_H__
|
||||
|
||||
#include "dbg.h"
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <ESP8266HTTPUpdateServer.h>
|
||||
#ifdef ESP8266
|
||||
#include <ESP8266WebServer.h>
|
||||
#include <ESP8266HTTPUpdateServer.h>
|
||||
#elif defined(ESP32)
|
||||
#include <WebServer.h>
|
||||
#include <HTTPUpdateServer.h>
|
||||
#endif
|
||||
|
||||
#include "app.h"
|
||||
|
||||
|
@ -40,8 +45,13 @@ class web {
|
|||
void showWebApi(void);
|
||||
|
||||
private:
|
||||
ESP8266WebServer *mWeb;
|
||||
ESP8266HTTPUpdateServer *mUpdater;
|
||||
#ifdef ESP8266
|
||||
ESP8266WebServer *mWeb;
|
||||
ESP8266HTTPUpdateServer *mUpdater;
|
||||
#elif defined(ESP32)
|
||||
WebServer *mWeb;
|
||||
HTTPUpdateServer *mUpdater;
|
||||
#endif
|
||||
|
||||
config_t *mConfig;
|
||||
sysConfig_t *mSysCfg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue