Skip to main content
PHerm
Visitor II
Nov 12, 2019 6:55 PM UTC
Question

How to make ble characteristic payload more than 20 chars?

Hello,I want to make payload with 32 chars in my ble servise, I'm changing it in p2pstm.c like in workshop, but nothing more than 20 chars does't transmits. Also allready tried to change the ATT_MTU value in appConf.h - didn't help. How to do it?

This topic has been closed for replies.

1 reply

Nov 12, 2019 8:03 PM UTC

Hi !

First of all, you need to check that when creating characteristic by aci_gatt_add_char(...), the fourth parameter uint16_t Char_Value_Length have sufficient value, least 32.

Second, ATT_MTU should be at least 7 bytes larger, i.e. >=39 bytes.

Thirdly, peer (another device) must support such MTU. otherwise the data will be truncated.

After that, everything should work.

Regards,

Vyacheslav.