Files
EMS-ESP32/lib/framework/ESPUtils.h
2024-02-14 11:00:03 +01:00

18 lines
316 B
C++

#ifndef ESPUtils_h
#define ESPUtils_h
#include <Arduino.h>
class ESPUtils {
public:
static String defaultDeviceValue(const String & prefix = "") {
#ifndef EMSESP_STANDALONE
return prefix + String(static_cast<uint32_t>(ESP.getEfuseMac()), HEX);
#else
return "ems-esp";
#endif
}
};
#endif