-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathKconfig.cloud
More file actions
95 lines (78 loc) · 2.78 KB
/
Kconfig.cloud
File metadata and controls
95 lines (78 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "Cloud module"
depends on NRF_CLOUD_COAP
config APP_CLOUD_BACKOFF_INITIAL_SECONDS
int "Reconnection backoff time in seconds"
default 60
help
Time in between reconnection attempts to the nRF Cloud CoAP server.
The timer starts after the last failed attempt.
choice APP_CLOUD_BACKOFF_TYPE
prompt "Reconnection backoff type"
default APP_CLOUD_BACKOFF_TYPE_LINEAR
config APP_CLOUD_BACKOFF_TYPE_EXPONENTIAL
bool "Exponential backoff"
help
Exponential backoff doubles the reconnection timeout after each failed attempt.
The maximum reconnection timeout is defined by APP_CLOUD_BACKOFF_MAX_SECONDS.
config APP_CLOUD_BACKOFF_TYPE_LINEAR
bool "Linear backoff"
help
Linear backoff adds a fixed amount of time to the reconnection timeout after each failed attempt,
as defined by APP_CLOUD_BACKOFF_LINEAR_INCREMENT_SECONDS.
config APP_CLOUD_BACKOFF_TYPE_NONE
bool "No backoff"
help
No backoff means that the reconnection timeout is constant at the value defined by
APP_CLOUD_BACKOFF_INITIAL_SECONDS.
endchoice
config APP_CLOUD_BACKOFF_LINEAR_INCREMENT_SECONDS
int "Reconnection backoff time increment"
default 60
help
Time added to the reconnection timeout after each failed attempt in seconds.
The maximum reconnection timeout is defined by APP_CLOUD_BACKOFF_MAX_SECONDS.
config APP_CLOUD_BACKOFF_MAX_SECONDS
int "Maximum reconnection timeout"
default 3600
help
Maximum reconnection backoff value in seconds.
config APP_CLOUD_THREAD_STACK_SIZE
int "Thread stack size"
default 4096
config APP_CLOUD_MESSAGE_QUEUE_SIZE
int "Message queue size"
default 5
help
ZBus subscriber message queue size.
config APP_CLOUD_POLL_INTERVAL_SECONDS
int "Poll interval in seconds"
default 10
help
Interval in seconds between polling nRF Cloud CoAP.
config APP_CLOUD_WATCHDOG_TIMEOUT_SECONDS
int "Watchdog timeout"
default 180
help
Timeout in seconds for the cloud module watchdog.
The timeout given in this option covers both:
* Waiting for an incoming message in zbus_sub_wait_msg().
* Time spent processing the message, defined by
CONFIG_APP_CLOUD_MSG_PROCESSING_TIMEOUT_SECONDS.
Ensure that this value exceeds CONFIG_APP_CLOUD_MSG_PROCESSING_TIMEOUT_SECONDS.
A small difference between the two can mean more frequent watchdog feeds, which increases
power consumption.
config APP_CLOUD_MSG_PROCESSING_TIMEOUT_SECONDS
int "Maximum message processing time"
default 120
help
Maximum time allowed for processing a single message in the module's state machine.
The value must be smaller than CONFIG_APP_CLOUD_WATCHDOG_TIMEOUT_SECONDS.
module = APP_CLOUD
module-str = Cloud
source "subsys/logging/Kconfig.template.log_config"
endmenu # Cloud