a59f32c420
Implemented factory-reset feature Extract factory settings into separate ini file Hide reset/factory reset from guest user Co-authored-by: kasedy <kasedy@gmail.com>
18 lines
336 B
C++
18 lines
336 B
C++
#ifndef ESPUtils_h
|
|
#define ESPUtils_h
|
|
|
|
#include <Arduino.h>
|
|
|
|
class ESPUtils {
|
|
public:
|
|
static String defaultDeviceValue(String prefix = "") {
|
|
#ifdef ESP32
|
|
return prefix + String((unsigned long)ESP.getEfuseMac(), HEX);
|
|
#elif defined(ESP8266)
|
|
return prefix + String(ESP.getChipId(), HEX);
|
|
#endif
|
|
}
|
|
};
|
|
|
|
#endif // end ESPUtils
|