The BLE backend has a bug that when the MTU size is less than the buffer the notification always fails and does not allow to flush the buffer. This fix checks for the MTU size of the current connection and adjusts it. In addition, the buffer size is no longer settable by the user and depends on the transmission size of MTU set with CONFIG_BT_L2CAP_TX_MTU. Signed-off-by: Victor Chavez <chavez-bermudez@fh-aachen.de>
11 lines
285 B
Plaintext
11 lines
285 B
Plaintext
CONFIG_BT=y
|
|
CONFIG_BT_SMP=y
|
|
CONFIG_BT_PERIPHERAL=y
|
|
CONFIG_BT_DEVICE_NAME="Zephyr Logger Backend BLE"
|
|
CONFIG_LOG_BACKEND_BLE=y
|
|
CONFIG_LOG=y
|
|
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
|
|
# Uncomment to use the maximum buffer size
|
|
# CONFIG_BT_L2CAP_TX_MTU=600
|
|
# CONFIG_BT_BUF_ACL_RX_SIZE=600
|