support standalone

This commit is contained in:
Proddy
2024-02-14 11:00:03 +01:00
parent 994e1fc26b
commit daf08e7bd9

View File

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