Firmware OTA API

Firmware over-the-air update API.

API Reference

Header File

Functions

int fota_start(const char *in_url)

Start Firmware Update

Return

0 on success, negative value on error

Parameters
  • in_url: [in] HTTP URL to download firmware

int fota_in_progress(void)

Get OTA status

Return

Return 1 if FOTA in progress, 0 otherwise