mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
support standalone
This commit is contained in:
@@ -6,7 +6,11 @@
|
|||||||
class ESPUtils {
|
class ESPUtils {
|
||||||
public:
|
public:
|
||||||
static String defaultDeviceValue(const String & prefix = "") {
|
static String defaultDeviceValue(const String & prefix = "") {
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
return prefix + String(static_cast<uint32_t>(ESP.getEfuseMac()), HEX);
|
return prefix + String(static_cast<uint32_t>(ESP.getEfuseMac()), HEX);
|
||||||
|
#else
|
||||||
|
return "ems-esp";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user