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
+3 -3
View File
@@ -20,21 +20,21 @@
using namespace std::chrono_literals;
namespace {
constexpr const char * const TAG = "OTA_CLOUD";
constexpr const char * const TAG = "OTA_CLIENT";
cpputils::DelayedConstruction<EspAsyncOta> _otaClient;
} // namespace
EspAsyncOta &otaClient{_otaClient.getUnsafe()};
void ota_cloud_init()
void ota_client_init()
{
ESP_LOGI(TAG, "called");
_otaClient.construct("asyncOtaTask", 8192u);
}
void ota_cloud_update()
void ota_client_update()
{
_otaClient->update();
}