swu_client_configuration_get_max_update_retries()

Get the maximum number of retries allowed per software update

Synopsis:

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

Arguments:

max_retries
On output, the 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:

Get the maximum number of retries allowed per software update. If an Update object fails to install an update on its target, the Update will retry the installation until either it succeeds or has attempted 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_INVALID_ARGUMENT
An invalid argument (e.g., a bad pointer) was given.
SWU_RESULT_NOT_INITIALIZED
The library hasn't been initialized yet.
SWU_RESULT_ERROR
Another error occurred.