IoT Platform provides the over-the-air (OTA) update and management feature. This article describes how to configure Link SDK for C to perform an OTA update.

Prerequisites

Background information

  • For more information about the OTA update feature, see Overview.
  • For more information about OTA update-specific Alink data formats, see OTA updates.

Process

To perform an OTA update, you must use the MQTT protocol to connect the application program with IoT Platform. You can use the HTTPS or MQTT protocol to download an OTA update package.

  • HTTPS
    • You can use this protocol to download an OTA update package that contains one or more files.
    • For more information about the related API operations, see aiot_ota_api.h.
    • The following figure shows the process. In this example, the ./demos/fota_posix_demo.c or ./demos/fota_multi_file_demo.c application program is used.
    Process
  • MQTT
    • You can use this protocol to download an OTA update package that contains a single file.
    • For more information about the related API operations, see aiot_mqtt_download_api.h.
    • The following figure shows the process. In this example, the ./demos/mota_basic_demo.c application program is used.

Examples