mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
getMacAddress()
This commit is contained in:
@@ -1651,4 +1651,12 @@ bool System::ntp_connected() {
|
|||||||
return 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
|
} // namespace emsesp
|
||||||
|
|||||||
Reference in New Issue
Block a user