getMacAddress()

This commit is contained in:
proddy
2024-05-27 22:15:33 +02:00
parent bcb78ee4d2
commit bb1d2d6680

View File

@@ -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