Skip to content

Commit 40d2495

Browse files
committed
Added ESP32 Support
This adds support for ESP32. *** TESTS Tested: ESP32 Support fully tested in online mode (Tested with ESP32_DevkitC_V4): - DNS: playstation.net redirected ok, playstation.com blocked ok - HTTPS: works ok on PC (with of course certificate warning) and ok on PS5 - PS4 Tests: User Guide redirect works, Tested GoldHEN 2.3 on PS4 - PS5 Tests: User Guide Redirect Works, Tested SpecterDev's exploit on PS5 Untested: - offline mode not tested - ESP8266 not fully tested with these changes. It is supposed to have no impact on ESP8266. **** ESP32 Compilation For people who want to compile this: - IP_NAPT errors: Some SDKs don't have NAT support enabled for ESP32 so I had to use an unofficial build of the ESP32 Library for Arduino. See: espressif/arduino-esp32#6421 (comment) - TAG ESP_LOGI errors: ESP32_HTTPS_SERVER seems to have some code incompatible with some SDKs, I had to manually edit one of the files, see: fhessel/esp32_https_server#156 (comment)
1 parent 449b0e8 commit 40d2495

7 files changed

+283
-110
lines changed

DNSServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "DNSServer.h"
22
#include <lwip/def.h>
33
#include <Arduino.h>
4-
#include <ESP8266WiFi.h>
4+
//#include <ESP8266WiFi.h>
55

66

77
DNSServer::DNSServer()

GlobalConfig.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "GlobalConfig.h"
22

3+
#include <FS.h>
4+
#ifdef ESP32
5+
#include <SPIFFS.h>
6+
#endif
37
const char* CONFIG_FILE = "/config.ini";
48

59
GlobalConfig* GlobalConfig::mInstance = NULL;

GlobalConfig.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef GLOBALCONFIG_H
22
#define GLOBALCONFIG_H
33

4-
#include <ESP8266WiFi.h>
4+
//#include <ESP8266WiFi.h>
5+
#include <Ethernet.h>
56

67
//#define GLOBALCONFIG_DEBUG
78
extern const char* CONFIG_FILE;
@@ -50,6 +51,4 @@ class GlobalConfig{
5051
};
5152

5253

53-
54-
5554
#endif

0 commit comments

Comments
 (0)