Firmware OTA API

Firmware over-the-air update API.

API Reference

Header File

Source: include/fota.h

#include <fota.h>

Functions

int fota_start(const char *in_url)

Start Firmware Update

Parameters

in_url – [in] HTTP URL to download firmware

Returns

0 on success, negative value on error

int fota_in_progress(void)

Get OTA status

Returns

Return 1 if FOTA in progress, 0 otherwise

int logicrom_fota_register(const char *code, const char *ver)

Register with Logicrom FOTA server for automatic firmware updates via Device management console.

Parameters
  • code – Firmware code to identify application

  • ver – current firmware version

Returns

return 0 on success, negative value on failure