How can BLE server access its own characteristics?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-05 8:19 AM
I am working with the STM32WB15 controller. I have implemented a few custom BLE characteristics and I want to be able to check the value of the characteristics on the server side (not from a read request from a client device). Is there a way to access the current value of a characteristic?
Labels:
- Labels:
-
BLE
-
STM32WB series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-06-29 2:33 PM
Try aci_gatt_read_handle_value
aci_gatt_read_handle_value((CustomContext.CustomMyTestCharHdle + CHARACTERISTIC_VALUE_ATTRIBUTE_OFFSET),
0, /* charValOffset */
SizeMyTestChar, /* wanted length of data */
&ret_len, /* will return the actual length read */
&buffer_len, /* a pointer to the length of buffer */
buffer /* actual buffer */);
I found it in the AN5270 document
