After i register the call back function for client write as following:
and in the call back function as following code:
int hello_sensor_write_handler(LEGATTDB_ENTRY_HDR *p)
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??