1# LoRaWAN Services configuration
2#
3# Copyright (c) 2022 Martin Jäger <martin@libre.solar>
4# Copyright (c) 2022 tado GmbH
5#
6# SPDX-License-Identifier: Apache-2.0
7
8menuconfig LORAWAN_SERVICES
9	bool "LoRaWAN Services backend"
10	depends on LORAWAN
11	select ENTROPY_GENERATOR
12	help
13	  Enables the LoRaWAN background services, e.g. used for
14	  firmware-upgrade over the air (FUOTA).
15
16	  The services use a dedicated thread and a work queue.
17
18if LORAWAN_SERVICES
19
20module = LORAWAN_SERVICES
21module-str = lorawan_services
22source "subsys/logging/Kconfig.template.log_config"
23
24config LORAWAN_SERVICES_THREAD_STACK_SIZE
25	int "Services thread stack size"
26	default 2048
27	help
28	  Stack size of thread running LoRaWAN background services.
29
30config LORAWAN_SERVICES_THREAD_PRIORITY
31	int "Services thread priority"
32	default 2
33	help
34	  Priority of the thread running LoRaWAN background services.
35
36config LORAWAN_APP_CLOCK_SYNC
37	bool "Application Layer Clock Synchronization"
38	help
39	  Enables the LoRaWAN Application Layer Clock Synchronization service
40	  according to LoRa Alliance TS003-2.0.0.
41
42	  The service uses the default port 202.
43
44config LORAWAN_APP_CLOCK_SYNC_PERIODICITY
45	int "Application Layer Clock Synchronization periodicity"
46	depends on LORAWAN_APP_CLOCK_SYNC
47	range 128 4194304
48	default 86400
49	help
50	  Initial setting for clock synchronization periodicity in seconds.
51
52	  The value can be updated remotely by the application server within a
53	  range from 128 (0x80) to 4194304 (0x400000).
54
55	  Default setting: 24h.
56
57endif # LORAWAN_SERVICES
58