Wifi provide Mac Address on Core3 (#21117)

This commit is contained in:
s-hadinger
2024-04-07 10:55:53 +02:00
committed by GitHub
parent 8a06984947
commit 541f3630a1
13 changed files with 37 additions and 15 deletions

View File

@@ -195,7 +195,7 @@ HTTPUpdateResult HTTPUpdateLight::handleUpdate(HTTPClientLight& http, const Stri
http.setFollowRedirects(_followRedirects);
http.setUserAgent("ESP32-http-Update");
http.addHeader("Cache-Control", "no-cache");
http.addHeader("x-ESP32-STA-MAC", WiFi.macAddress());
http.addHeader("x-ESP32-STA-MAC", WiFiHelper::macAddress());
http.addHeader("x-ESP32-AP-MAC", WiFi.softAPmacAddress());
http.addHeader("x-ESP32-free-space", String(ESP.getFreeSketchSpace()));
http.addHeader("x-ESP32-sketch-size", String(ESP.getSketchSize()));