#include <stddef.h>
#include "kaa_error.h"
#include <platform/time.h>
Go to the source code of this file.
|
| enum | kaa_failover_strategy_action_t {
KAA_NOOP = 0,
KAA_RETRY,
KAA_USE_NEXT_BOOTSTRAP,
KAA_USE_NEXT_OPERATIONS,
KAA_STOP_APP
} |
| |
| enum | kaa_failover_reason {
KAA_CHANNEL_NA = 0,
KAA_BOOTSTRAP_SERVERS_NA,
KAA_OPERATION_SERVERS_NA,
KAA_NO_OPERATION_SERVERS_RECEIVED,
KAA_NO_CONNECTIVITY,
KAA_ENDPOINT_NOT_REGISTERED,
KAA_CREDENTIALS_REVOKED
} |
| |
| #define KAA_BOOTSTRAP_RESPONSE_PERIOD 5 |
| #define KAA_FAILOVER_RETRY_PERIOD 2 |
| Enumerator |
|---|
| KAA_CHANNEL_NA |
|
| KAA_BOOTSTRAP_SERVERS_NA |
|
| KAA_OPERATION_SERVERS_NA |
|
| KAA_NO_OPERATION_SERVERS_RECEIVED |
|
| KAA_NO_CONNECTIVITY |
|
| KAA_ENDPOINT_NOT_REGISTERED |
|
| KAA_CREDENTIALS_REVOKED |
|
| Enumerator |
|---|
| KAA_NOOP |
|
| KAA_RETRY |
|
| KAA_USE_NEXT_BOOTSTRAP |
|
| KAA_USE_NEXT_OPERATIONS |
|
| KAA_STOP_APP |
|
Returns the decision, depending on the failover reason.
- Parameters
-
| [in] | self | Pointer to the failover strategy instance. |
| [in] | reason | Reason that caused failover strategy to be executed. |
- Returns
- kaa_failover_decision_t