This commit is contained in:
ok-home
2023-09-26 20:43:40 +07:00
parent 08e8275540
commit fd69d43d38
2 changed files with 2 additions and 4 deletions

View File

@@ -28,9 +28,8 @@ static httpd_handle_t start_webserver(void)
// Start the httpd server
ESP_LOGI(TAG, "Starting server on port: '%d'", config.server_port);
if (httpd_start(&server, &config) == ESP_OK) {
/****************** Registering the ws handler ****************/
ESP_LOGI(TAG, "Registering URI handlers");
//register ota_ws handler
/****************** Registering the ws handler ****************/
ota_ws_register_uri_handler(server);
// end register ota_ws handler
return server;