[STM32WB55] How to use CHAR_PROP_WRITE modified in sample code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-20 9:11 PM
Hi Sir,
​
I use sample code in STM32Cube_FW_WB_V1.13.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_p2pServer and BLE_p2pClient. The BLE characteristic's property CHAR_PROP_WRITE_WITHOUT_RESP is used in the sample, I try to modified it as CHAR_PROP_WRITE, then client cannot control blue LED by pressing SW1 button. is there anywhere need to modify if I use CHAR_PROP_WRITE property? thank you.
​
Best regards,
C​
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-23 2:45 AM
Hello,
In order to use CHAR_PROP_WRITE in BLE_p2pServer and BLE_p2pClient example, do the following modification:
- In BLE_p2pServer : Change the characteristic property by changing CHAR_PROP_WRITE_WITHOUT_RESP by CHAR_PROP_WRITE in aci_gatt_add_char for LED characteristic (p2p_stm.c)
- In BLE_p2pClient : Remplace the use of aci_gatt_write_without_resp by aci_gatt_write_char_value in Write_Char (p2p_client_app.c)
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-08-23 2:45 AM
Hello,
In order to use CHAR_PROP_WRITE in BLE_p2pServer and BLE_p2pClient example, do the following modification:
- In BLE_p2pServer : Change the characteristic property by changing CHAR_PROP_WRITE_WITHOUT_RESP by CHAR_PROP_WRITE in aci_gatt_add_char for LED characteristic (p2p_stm.c)
- In BLE_p2pClient : Remplace the use of aci_gatt_write_without_resp by aci_gatt_write_char_value in Write_Char (p2p_client_app.c)
Best Regards
