:orphan: .. title:: MCUMGR_BUF_USER_DATA_SIZE .. option:: CONFIG_MCUMGR_BUF_USER_DATA_SIZE *Size of mcumgr buffer user data* Type: ``int`` Help ==== The size, in bytes, of user data to allocate for each mcumgr buffer. Different mcumgr transports impose different requirements for this setting. A value of 4 is sufficient for UART, shell, and bluetooth. For UDP, the userdata must be large enough to hold a IPv4/IPv6 address. Note that CONFIG_NET_BUF_USER_DATA_SIZE must be at least as big as MCUMGR_BUF_USER_DATA_SIZE. Direct dependencies =================== \ :option:`MCUMGR ` *(Includes any dependencies from ifs and menus.)* Defaults ======== - 24 if \ :option:`MCUMGR_SMP_UDP ` && \ :option:`MCUMGR_SMP_UDP_IPV6 ` - 8 if \ :option:`MCUMGR_SMP_UDP ` && \ :option:`MCUMGR_SMP_UDP_IPV4 ` - 4 Kconfig definition ================== .. highlight:: kconfig At ``subsys/mgmt/mcumgr/Kconfig:361`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:34`` → ``subsys/Kconfig:35`` → ``subsys/mgmt/Kconfig:9`` Menu path: (Top) → Sub Systems and OS Services → Device Management → mcumgr Support .. parsed-literal:: config MCUMGR_BUF_USER_DATA_SIZE int "Size of mcumgr buffer user data" default 24 if \ :option:`MCUMGR_SMP_UDP ` && \ :option:`MCUMGR_SMP_UDP_IPV6 ` default 8 if \ :option:`MCUMGR_SMP_UDP ` && \ :option:`MCUMGR_SMP_UDP_IPV4 ` default 4 depends on \ :option:`MCUMGR ` help The size, in bytes, of user data to allocate for each mcumgr buffer. Different mcumgr transports impose different requirements for this setting. A value of 4 is sufficient for UART, shell, and bluetooth. For UDP, the userdata must be large enough to hold a IPv4/IPv6 address. Note that CONFIG_NET_BUF_USER_DATA_SIZE must be at least as big as MCUMGR_BUF_USER_DATA_SIZE. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*