Refactored Wifi for ESP32 to allow for Core3 (#21106)

* Refactored Wifi for ESP32 to allow for Core3

* Fix case in include

* Grrr

* Fix compilation

* Fix Ethernet IPv6

* Fix wrong hostname due to mac address unknown at start
This commit is contained in:
s-hadinger
2024-04-05 23:44:21 +02:00
committed by GitHub
parent 8a8888a273
commit 2128dfbade
16 changed files with 308 additions and 158 deletions

View File

@@ -1166,7 +1166,7 @@ bool HTTPClientLight::connect(void)
} else {
IPAddress remote_addr;
// Add include "ESP8266WiFi.h" for this to work
if (!WiFi.hostByName(_host.c_str(), remote_addr)) {
if (!WiFiHelper::hostByName(_host.c_str(), remote_addr)) {
return false;
}
if(!_client->connect(remote_addr, _port, _connectTimeout)) {