- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have created a BLE Service Characteristic that has a sint16 array. Using CySmart, I see all data bytes scroll by as zero based on length set when I read the Service Characteristic. I can specify a specific array point and get it to show in the scrolling data of zeros in CySmart. Is there an Array index number request being sent over by the Client that can be used to automatically sequence through the Server array? What's its name?
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AFAIK the GATT client always retrieves the complete data set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your input. With your comment, I continued investigating and it looks like I did not have the tempHandle.value.len value set properly. Not sure why but to get it to work correctly, I need to set tempHandle.value.len to two times the array length of the int16 data points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, 'len' is in bytes (because bytes is the only thing the transport layer cares about at this point). And since each element of an int16 array is 2 bytes, you need to double the length.