wip:
This commit is contained in:
29
include/zh_ota_server.h
Normal file
29
include/zh_ota_server.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "esp_ota_ops.h"
|
||||
#include "esp_flash_partitions.h"
|
||||
#include "esp_partition.h"
|
||||
#include "esp_image_format.h"
|
||||
#include <esp_log.h>
|
||||
#include "esp_http_server.h"
|
||||
|
||||
#include "jsmn.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 zh_ota_server_init(httpd_handle_t server);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user