4.2. Border Router HTTP OTA

The ESP Thread Border Router HTTP OTA component provides helper functions to download firmware from the web server.

API reference

Functions

esp_err_t esp_br_http_ota(esp_http_client_config_t *http_config)

This function performs Border Router OTA by downloading from a HTTPS server.

Parameters

http_config[in] The HTTP server download config

Returns

  • ESP_OK

  • ESP_FAIL

  • ESP_ERR_INVALID_STASTE If the RCP update is not initialized.

  • ESP_ERR_INVALID_ARG If the http config is NULL or does not contain an url.

Macros

OTA_MAX_WRITE_SIZE