|
7 | 7 | menu "Transport"
|
8 | 8 | depends on NRF_CLOUD_COAP
|
9 | 9 |
|
10 |
| -config APP_TRANSPORT_RECONNECTION_TIMEOUT_SECONDS |
11 |
| - int "Reconnection timeout in seconds" |
| 10 | +config APP_TRANSPORT_BACKOFF_INITIAL_SECONDS |
| 11 | + int "Reconnection backoff time in seconds" |
12 | 12 | default 60
|
13 | 13 | help
|
14 |
| - Time in between reconnection attempts to the MQTT broker. |
| 14 | + Time in between reconnection attempts to the CoAP server. |
| 15 | + The timer starts after the last failed attempt. |
| 16 | + |
| 17 | +choice APP_TRANSPORT_BACKOFF_BACKOFF_TYPE |
| 18 | + prompt "Reconnection backoff type" |
| 19 | + default APP_TRANSPORT_BACKOFF_BACKOFF_TYPE_LINEAR |
| 20 | + |
| 21 | +config APP_TRANSPORT_BACKOFF_BACKOFF_TYPE_EXPONENTIAL |
| 22 | + bool "Exponential backoff" |
| 23 | + help |
| 24 | + Exponential backoff doubles the reconnection timeout after each failed attempt. |
| 25 | + The maximum reconnection timeout is defined by APP_TRANSPORT_BACKOFF_MAX_SECONDS. |
| 26 | + |
| 27 | +config APP_TRANSPORT_BACKOFF_BACKOFF_TYPE_LINEAR |
| 28 | + bool "Linear backoff" |
| 29 | + help |
| 30 | + Linear backoff adds a fixed amount of time to the reconnection timeout after each failed attempt, |
| 31 | + as defined by APP_TRANSPORT_BACKOFF_LINEAR_INCREMENT_SECONDS. |
| 32 | + |
| 33 | +config APP_TRANSPORT_BACKOFF_BACKOFF_TYPE_NONE |
| 34 | + bool "No backoff" |
| 35 | + help |
| 36 | + No backoff means that the reconnection timeout is constant at the value defined by |
| 37 | + APP_TRANSPORT_BACKOFF_INITIAL_SECONDS. |
| 38 | + |
| 39 | +endchoice |
| 40 | + |
| 41 | +config APP_TRANSPORT_BACKOFF_LINEAR_INCREMENT_SECONDS |
| 42 | + int "Reconnection backoff time increment" |
| 43 | + default 60 |
| 44 | + depends on APP_TRANSPORT_BACKOFF_BACKOFF_TYPE_LINEAR |
| 45 | + help |
| 46 | + Time added to the reconnection timeout after each failed attempt in seconds. |
| 47 | + The maximum reconnection timeout is defined by APP_TRANSPORT_BACKOFF_MAX_SECONDS. |
| 48 | + |
| 49 | +config APP_TRANSPORT_BACKOFF_MAX_SECONDS |
| 50 | + int "Maximum reconnection timeout" |
| 51 | + default 3600 |
| 52 | + help |
| 53 | + Maximum reconnection backoff value in seconds. |
15 | 54 |
|
16 | 55 | config APP_TRANSPORT_THREAD_STACK_SIZE
|
17 | 56 | int "Thread stack size"
|
|
0 commit comments