fix standalone building

This commit is contained in:
proddy
2021-10-19 17:40:12 +02:00
parent 752530a381
commit 48cedbd0fb
6 changed files with 55 additions and 21 deletions

View File

@@ -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

View File

@@ -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
View File

View 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;
}
};