1# Copyright (c) 2023 Victor Chavez
2# SPDX-License-Identifier: Apache-2.0
3
4config LOG_BACKEND_BLE
5	bool "Bluetooth Low Energy (BLE) backend"
6	depends on BT
7	depends on LOG_PROCESS_THREAD_STACK_SIZE>=2048
8	select LOG_OUTPUT
9	select EXPERIMENTAL
10	help
11	  Backend that sends log messages over Bluetooth LE Notifications. This
12	  characteristic and its service are compatible with the Nordic UART
13	  Service (NUS), from the nRF Connect SDK.
14	  This allows to use this BLE Logger directly with a compatible app such
15	  as the nRF UART 2.0 or nRF Toolbox app.
16
17if LOG_BACKEND_BLE
18
19config LOG_BACKEND_BLE_BUF_SIZE
20	int "BLE Logger Backend Buffer size"
21	range 20 512
22	default 20
23	help
24	  Maximum buffer size that can be transmitted over the BLE Logger
25	  notification characteristic. The minimum size is 20 for the smallest
26	  MTU packet. Be sure to increase the MTU size in your application to use
27	  bigger values.
28	  Both BT_L2CAP_TX_MTU and BT_BUF_ACL_RX_SIZE will need to be increased.
29
30backend = BLE
31backend-str = ble
32source "subsys/logging/Kconfig.template.log_format_config"
33
34endif # LOG_BACKEND_BLE
35