Skip to content
Commit c97710cb authored by Carlo Weidinger's avatar Carlo Weidinger Committed by Benjamin Cabé
Browse files

samples: Bluetooth: Improve printing in NUS sample



Removing the message buffer and printing out the message directly.
Creating a message buffer with the size of CONFIG_BT_L2CAP_TX_MTU
creates a large empty buffer, which is expensive for the stack and
can lead to a stack overflow.
This way, the sample can be more easily integrated with
other Bluetooth functionalities, such as Bluetooth OTA.

Signed-off-by: default avatarCarlo Weidinger <carlo.weidinger@protonmail.com>
parent 4a3ce333
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment