ota.h 355 B

12345678910111213
  1. #pragma once
  2. #include "esp_err.h"
  3. #include "esp_http_server.h"
  4. /**
  5. * Perform OTA update from HTTP POST request containing raw firmware binary.
  6. * Does not restart - caller should send response then call esp_restart().
  7. *
  8. * @param req HTTP request with firmware in body
  9. * @return ESP_OK on success
  10. */
  11. esp_err_t ota_start_from_http(httpd_req_t *req);