Add webserver to change config or update with ota

This commit is contained in:
2022-01-30 02:38:08 +01:00
parent 70f5d647fb
commit 25a72ff463
9 changed files with 853 additions and 12 deletions
+2 -2
View File
@@ -22,10 +22,10 @@ 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));
return fmt::format("dmx_{: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";
return "dmx";
}
ConfigManager<ConfigContainer> configs;