mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix standalone building
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#define IPAddress std::string
|
||||
// #define IPAddress std::string
|
||||
#define IPAddress String
|
||||
|
||||
#define ICACHE_FLASH_ATTR
|
||||
#define ICACHE_RAM_ATTR
|
||||
#define os_event_t void
|
||||
|
||||
@@ -48,7 +48,7 @@ class DummySettings {
|
||||
String localIP = "";
|
||||
String gatewayIP = "";
|
||||
String subnetMask = "";
|
||||
String staticIPConfig = "";
|
||||
bool staticIPConfig = false;
|
||||
String dnsIP1 = "";
|
||||
String dnsIP2 = "";
|
||||
String board_profile = "CUSTOM";
|
||||
|
||||
0
lib_standalone/ESPmDNS.h
Normal file
0
lib_standalone/ESPmDNS.h
Normal file
@@ -158,9 +158,12 @@ class WiFiClass {
|
||||
return 0;
|
||||
};
|
||||
|
||||
void disconnect(bool v){};
|
||||
|
||||
char * getHostname() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
char * localIP() {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -172,16 +175,23 @@ class ETHClass {
|
||||
return false;
|
||||
};
|
||||
|
||||
void setHostname(const char * s){};
|
||||
void setHostname(const char * s){};
|
||||
|
||||
char * getHostname() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
char * localIP() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int linkSpeed() {
|
||||
return 100;
|
||||
}
|
||||
|
||||
bool config(IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1, IPAddress dns2) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user