Skip to main content
TMoll.1
Associate II
Oct 11, 2022 11:49 AM UTC
Solved

STM32WB, How to catch execute write event ?

I have configured my stm32wb as a BLE server and I would like to write large data. I handle prepare write request properly but how I manage the end of the transfer ?

As show on the figure, the client send a execute write request but how can I catch this event in application firmware ?

I found aci_att_exec_write_resp_event callback but it is never called.

Trace of the transfer :

0693W00000UnoljQAB.png

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Oct 12, 2022 9:11 AM UTC

Hello,

The execute write event and prepare write event are managed by the BLE Stack. In application side, you can catch the ACI_GATT_ATTRIBUTE_MODIFIED_EVENT as describe in STM32WB_BLE_Wireless_Interface.html documentation, this event is generated to the application by the GATT server when a client modifies any attribute on the server, as consequence of one of the following GATT procedures:

- write without response

- signed write without response

- write characteristic value

- write long characteristic value

- reliable write.

Best Regards

2 replies

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Oct 12, 2022 9:11 AM UTC

Hello,

The execute write event and prepare write event are managed by the BLE Stack. In application side, you can catch the ACI_GATT_ATTRIBUTE_MODIFIED_EVENT as describe in STM32WB_BLE_Wireless_Interface.html documentation, this event is generated to the application by the GATT server when a client modifies any attribute on the server, as consequence of one of the following GATT procedures:

- write without response

- signed write without response

- write characteristic value

- write long characteristic value

- reliable write.

Best Regards

TMoll.1
TMoll.1Author
Associate II
Oct 12, 2022 9:51 AM UTC

Hello,

Thank you for your quick answer, it works :thumbs_up:

Regards