AWS IoT Device SDK C
202011.00
SDK for connecting to AWS IoT from a device using embedded C.
|
|
Go to the documentation of this file.
29 #ifndef RETRY_UTILS_H_
30 #define RETRY_UTILS_H_
174 #define MAX_RETRY_ATTEMPTS 4U
180 #define INITIAL_RETRY_BACKOFF_SECONDS 1U
185 #define MAX_RETRY_BACKOFF_SECONDS 128U
190 #define MAX_JITTER_VALUE_SECONDS 5U
195 typedef enum RetryUtilsStatus
204 typedef struct RetryUtilsParams
@ RetryUtilsRetriesExhausted
The function exhausted all retry attempts.
Definition: retry_utils.h:198
RetryUtilsStatus_t
Status for RetryUtils_BackoffAndSleep.
Definition: retry_utils.h:196
@ RetryUtilsSuccess
The function returned successfully after sleeping.
Definition: retry_utils.h:197
RetryUtilsStatus_t RetryUtils_BackoffAndSleep(RetryUtilsParams_t *pRetryParams)
Simple platform specific exponential backoff function. The application must use this function between...
Definition: retry_utils_posix.c:37
uint32_t nextJitterMax
The max jitter value for backoff time in retry attempt.
Definition: retry_utils.h:215
Represents parameters required for retry logic.
Definition: retry_utils.h:205
void RetryUtils_ParamsReset(RetryUtilsParams_t *pRetryParams)
Resets the retry timeout value and number of attempts. This function must be called by the applicatio...
Definition: retry_utils_posix.c:82
uint32_t attemptsDone
The cumulative count of backoff delay cycles completed for retries.
Definition: retry_utils.h:210