Over-the-air demo configurations - FreeRTOS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Over-the-air demo configurations

The OTA demo configurations are demo-specific configuration options provided in aws_iot_ota_update_demo.c. These configurations are different from the OTA library configurations provided in the OTA library config file.


For the MQTT client, this configuration is the maximum time interval that can elapse between finishing the transmission of one control packet and starting to send the next. In the absence of a control packet, a PINGREQ is sent. The broker must disconnect a client that doesn't send a message or a PINGREQ packet in one and a half times of this keep alive interval. This configuration should be adjusted based on the application's requirements.


The base interval, in seconds, before retrying the network connection. The OTA demo will try to reconnect after this base time interval. The interval is doubled after every failed attempt. A random delay, up to a maximum of this base delay, is also added to the interval.


The maximum interval, in seconds, before retrying the network connection. The reconnect delay is doubled on every failed attempt, but it can go only up to this maximum value, plus a jitter of the same interval.