29 lines
640 B
C
29 lines
640 B
C
#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 |