Skip to content
Permalink
Browse files

samples: bluetooth: peripheral: Fix RX buffer size

GATT long messages require buffers to store multiple packets. The actual
configuration for the bluetooth peripheral sample defines only two
buffers to store these messages. As the default ATT payload size is
18 bytes, the maximum payload size for a long ATT message is 36 bytes.
As the variable `vnd_long_value[]` has a defined size of 74 bytes, it
cannot be fully modified due to the 36 bytes limitation.

Set CONFIG_BT_ATT_PREPARE_COUNT=5 so all the maximum payload size goes
to 90 bytes and all the 74 bytes can be written to `vnd_long_value[]`.

Signed-off-by: Joao Cordeiro <jvcc@cesar.org.br>
  • Loading branch information...
jcorde authored and nashif committed May 13, 2019
1 parent 1202407 commit 74f01067e7485403c46f6ee99a7b120ddca87113
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/bluetooth/peripheral/prj.conf
@@ -7,7 +7,7 @@ CONFIG_BT_SMP=y
CONFIG_BT_SIGNING=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GATT_DIS=y
CONFIG_BT_ATT_PREPARE_COUNT=2
CONFIG_BT_ATT_PREPARE_COUNT=5
CONFIG_BT_PRIVACY=y
CONFIG_BT_DEVICE_NAME="Zephyr Peripheral Sample Long Name"
CONFIG_BT_DEVICE_APPEARANCE=833

0 comments on commit 74f0106

Please sign in to comment.
You can’t perform that action at this time.