12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include "esp_attr.h"
- #include "esp_image_format.h"
- #include "esp_ota_ops.h"
- #define OTA_FLASH_ERASE_BLOCK (uint32_t)249856
- #define OTA_STACK_SIZE 10240
- #define OTA_TASK_PRIOTITY 6
- const char * ota_get_status();
- uint8_t ota_get_pct_complete();
- esp_err_t start_ota(const char * bin_url, char * bin_buffer, uint32_t length);
- in_addr_t discover_ota_server(int max);
|