Anonymous
Not applicable
Apr 12, 2016
01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 12, 2016
01:17 PM
In my BLE profile I want to use uint16 and sint16 characteristic values as well as uint8.
However, the provided function "CyBle_GattsWriteAttributeValue(..)" uses attribute values that are only defined as type uint8.
Can I use uint16 values or do I need to restrict data to a uint8 and cast/shift into 8 bit values as needed?
-Tim
Solved! Go to Solution.
Labels
- Labels:
-
BLE
1 Solution
Anonymous
Not applicable
Apr 13, 2016
05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 13, 2016
05:32 AM
Hi,
Can I use uint16 values or do I need to restrict data to a uint8 and cast/shift into 8 bit values as needed?
A) Yes you need to shift and use uint8 .
Thanks,
Krishna.
1 Reply
Anonymous
Not applicable
Apr 13, 2016
05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 13, 2016
05:32 AM
Hi,
Can I use uint16 values or do I need to restrict data to a uint8 and cast/shift into 8 bit values as needed?
A) Yes you need to shift and use uint8 .
Thanks,
Krishna.