From bb1d2d668058cf633b354e4b432869f0b5d63f7f Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 27 May 2024 22:15:33 +0200 Subject: [PATCH] getMacAddress() --- src/system.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/system.cpp b/src/system.cpp index ecaacbe1f..a80521db3 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -1651,4 +1651,12 @@ bool System::ntp_connected() { return ntp_connected_; } +std::string System::getMacAddress() const { +#ifndef EMSESP_STANDALONE + return WiFi.macAddress().c_str(); +#else + return "10:10:10:10:10:10"; +#endif +} + } // namespace emsesp