cancel
Showing results for 
Search instead for 
Did you mean: 

How to Exten ATT MTU SIZE in the STM32WB55?

WWU.807
Associate II

I use BLE_p2pServer application, and try to send long size data to Mobile APP (LightBlue) or Rpi4 application (bulepy ).

I am only able to send 153 bytes for maximum.

May I ask how to exten ATT MTU SIZE > 153 bytes in the STM32WB55?

Thanks a lot.

My code modify as below:

_______________________________________________________________________________________

In app_conf.h:

/**

 * Maximum supported ATT_MTU size

 */

#define CFG_BLE_MAX_ATT_MTU       (250)

_______________________________________________________________________________________

In p2p_stm.c:

  COPY_P2P_NOTIFY_UUID(uuid16.Char_UUID_128);

  aci_gatt_add_char(aPeerToPeerContext.PeerToPeerSvcHdle,

           UUID_TYPE_128, &uuid16,

200,

           CHAR_PROP_NOTIFY,

           ATTR_PERMISSION_NONE,

           GATT_NOTIFY_ATTRIBUTE_WRITE, /* gattEvtMask */

           10, /* encryKeySize */

           1, /* isVariable: 1 */

           &(aPeerToPeerContext.P2PNotifyServerToClientCharHdle));

=============================================

  result = aci_gatt_update_char_value(aPeerToPeerContext.PeerToPeerSvcHdle,

               aPeerToPeerContext.P2PNotifyServerToClientCharHdle,

               0, /* charValOffset */

               200, /* charValueLen */

               (uint8_t *) pPayload);

_______________________________________________________________________________________

0 REPLIES 0