1 Reply Latest reply on Jun 18, 2018 10:21 PM by rjks

    How is data packed in (CYBLE_GATTC_READ_BY_TYPE_RSP_PARAM_T) attrData.attrValue

    spetcavich_1587511

      I start discovering my characteristics with CyBle_GattcDiscoverAllCharacteristics()  and get to the CYBLE_EVT_GATTC_READ_BY_TYPE_RSP event.

       

      charReport = (CYBLE_GATTC_READ_BY_TYPE_RSP_PARAM_T *) EventParam;

      charHandle =  charReport->attrData.attrValue[3] | (charReport->attrData.attrValue[4] << 8);

       

      from code examples I can deduce the handle is in:

       

      charReport->attrData.attrValue[3] | (charReport->attrData.attrValue[4]

       

      and the UUID follows in charReport->attrData.attrValue[5] onwards, but is there any documentation on how the data is packed?