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:
26
src/ESPUI.h
26
src/ESPUI.h
@ -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
|
||||
|
Reference in New Issue
Block a user