diff --git a/src/network_interfaces/Wippersnapper_ESP32.h b/src/network_interfaces/Wippersnapper_ESP32.h index 623b95979..baf480129 100644 --- a/src/network_interfaces/Wippersnapper_ESP32.h +++ b/src/network_interfaces/Wippersnapper_ESP32.h @@ -23,6 +23,7 @@ #include "Adafruit_MQTT.h" #include "Adafruit_MQTT_Client.h" #include "Arduino.h" +#include "WiFi.h" #include extern Wippersnapper WS; @@ -133,7 +134,7 @@ class Wippersnapper_ESP32 : public Wippersnapper { /********************************************************/ void getMacAddr() { uint8_t mac[6] = {0}; - WiFi.macAddress(mac); + Network.macAddress(mac); memcpy(WS._macAddr, mac, sizeof(mac)); }