swu_client_configuration_set_max_update_retries()

Set the maximum number of retries allowed per software update

Synopsis:

#include <swu/ClientConfiguration.h>
 
swu_result_t swu_client_configuration_set_max_update_retries( 
                                        uint8_t max_retries )

Arguments:

max_retries
Maximum number of retries allowed for an update.

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

Set the maximum number of retries allowed per software update. If an Update object fails to install an update on its target, the Update can retry the installation as many times as specified by this configuration setting. Note that the library currently doesn't use the retry value in the installation process.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_NOT_INITIALIZED
The library hasn't been initialized yet.
SWU_RESULT_ERROR
Another error occurred.