This commit is contained in:
ok-home
2023-09-23 14:23:28 +07:00
parent b753de7b5a
commit 9dc7641c60
9 changed files with 800 additions and 16 deletions

23
include/ota_ws.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include "ota_ws_private.h"
#ifdef __cplusplus
extern "C"
{
#endif
/*
* @brief register provision handlers ( web page & ws handlers) on existing httpd server with ws support
* uri page -> CONFIG_DEFAULT_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