#include "config.h" #include "sdkconfig.h" // esp-idf includes #include // 3rdparty lib includes #include #include #include // local includes #include "configmanager_priv.h" using namespace std::chrono_literals; namespace { //constexpr const char * const TAG = "CONFIG"; } // namespace std::string defaultHostname() { if (const auto result = wifi_stack::get_default_mac_addr()) return fmt::format("bobby_{:02x}{:02x}{:02x}", result->at(3), result->at(4), result->at(5)); else ESP_LOGE(TAG, "get_default_mac_addr() failed: %.*s", result.error().size(), result.error().data()); return "bobby"; } ConfigManager configs; INSTANTIATE_CONFIGMANAGER_TEMPLATES(ConfigContainer)