zephyr/subsys/bluetooth/services/Kconfig.bas
Emanuele Di Santo 30d65809fc Bluetooth: services: battery service enhancements
This commit moves the BLE GATT Battery service
from /samples/bluetooth/gatt to /subsys/bluetooth/services and
adds a Kconfig entry to enable and configure the service;
when enabled, it will register itself automatically.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2019-07-11 13:21:14 +03:00

30 lines
645 B
QBasic

# Kconfig - Bluetooth GATT Battery service
#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig BT_GATT_BAS
bool "Enable GATT Battery service"
select SENSOR
default n
if BT_GATT_BAS
config BT_GATT_BAS_LOG_LEVEL
int "Battery service log level"
depends on LOG
range 0 4
default 0
help
Sets log level for the Battery service.
Levels are:
0 OFF, do not write
1 ERROR, only write LOG_ERR
2 WARNING, write LOG_WRN in addition to previous level
3 INFO, write LOG_INF in addition to previous levels
4 DEBUG, write LOG_DBG in addition to previous levels
endif #BT_GATT_BAS