1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 06:10:18 +00:00

ESP8266 Compatibility, finally

This commit is contained in:
2017-12-01 17:11:16 +01:00
parent 489ba045fb
commit 479792e335
3 changed files with 36 additions and 14 deletions

View File

@ -1,23 +1,35 @@
#ifndef ESPUI_h
#define ESPUI_h
#define HARDWARE "esp32"
#define debug true
// ifdef 8266
//#include "Hash.h"
#include "Arduino.h"
#include "ArduinoJson.h"
#include "FS.h"
#include "SPIFFS.h"
#include "WiFi.h"
#include "stdlib_noniso.h"
#if defined(ESP32)
#include "SPIFFS.h"
#include "WiFi.h"
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#else
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <FS.h>
#include <Hash.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <SPIFFSEditor.h>
#define FILE_WRITE "w"
#endif
typedef struct Control {
unsigned int type;
unsigned int id; // just mirroring the id here for practical reasons