Apr 24, 2015
07:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 24, 2015
07:18 PM
After i register the call back function for client write as following:
legattdb_regWriteHandleCb((LEGATTDB_WRITE_CB)hello_sensor_write_handler);
and in the call back function as following code:
int hello_sensor_write_handler(LEGATTDB_ENTRY_HDR *p)
{
UINT8 writtenbyte;
UINT16 handle = legattdb_getHandle(p);
int len = legattdb_getAttrValueLen(p);
UINT8 *attrPtr = legattdb_getAttrValue(p);
}
The "len" value got back always equals the characteristic defined value length, not the actual data length sent from the server, is there any suggestion??
Solved! Go to Solution.
Labels
- Labels:
-
ReadWrite Characteristics
-
SDK 1.X
1 Solution
Apr 26, 2015
08:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2015
08:19 PM
1 Reply
Apr 26, 2015
08:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 26, 2015
08:19 PM