reorder to ota_ws_update

This commit is contained in:
ok-home
2023-09-26 13:44:12 +07:00
committed by GitHub
parent a22b997531
commit e85d078dfe
15 changed files with 134 additions and 4160 deletions

22
include/ota_ws_update.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include "ota_ws_private.h"
#ifdef __cplusplus
extern "C"
{
#endif
/*
* @brief register ota_ws httpd handlers ( web page & ws handlers) on existing httpd server with ws support
* uri page -> CONFIG_OTA_DEFAULT_WS_URI
* @param httpd_handle_t server -> existing server handle
* @return
* ESP_OK -> register OK
* ESP_FAIL -> register FAIL
*/
esp_err_t ota_ws_register_uri_handler(httpd_handle_t server);
#ifdef __cplusplus
}
#endif