1 Reply Latest reply on Apr 26, 2015 8:19 PM by BoonT_56

    How can I get real client write data length?


      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)


          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??