mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
18 lines
316 B
C++
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
|