1# Copyright Runtime.io 2018. All rights reserved. 2# Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved. 3# SPDX-License-Identifier: Apache-2.0 4 5# The Kconfig file is dedicated to Stat management group of 6# of MCUmgr subsystem and provides Kconfig options to configure 7# group commands behaviour and other aspects. 8# 9# Options defined in this file should be prefixed: 10# MCUMGR_GRP_STAT_ -- general group options; 11# 12# When adding Kconfig options, that control the same feature, 13# try to group them together by the same stem after prefix. 14 15menuconfig MCUMGR_GRP_STAT 16 bool "Mcumgr handlers for statistics management" 17 depends on STATS 18 select MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_2 19 select MCUMGR_SMP_CBOR_MIN_ENCODING_LEVEL_3 if ZCBOR_CANONICAL 20 help 21 Enables MCUmgr handlers for statistics management. 22 23if MCUMGR_GRP_STAT 24 25config MCUMGR_GRP_STAT_MAX_NAME_LEN 26 int "Maximum stat group name length" 27 default 32 28 depends on MCUMGR_GRP_STAT 29 help 30 Limits the maximum stat group name length in MCUmgr requests, in bytes. 31 For stat group names. a buffer of this size gets allocated on the stack 32 during handling of all stat read commands. If a stat group's name 33 exceeds this limit, it will be impossible to retrieve its values with 34 a stat show command. 35 For stat names s_name and snm_name, this is the maximum length when 36 encoding the name to cbor. 37 38module = MCUMGR_GRP_STAT 39module-str = mcumgr_grp_stat 40source "subsys/logging/Kconfig.template.log_config" 41 42endif # MCUMGR_GRP_STAT 43