GATT_EvtDiscPrimServResp_T

C

typedef struct GATT_EvtDiscPrimServResp_T
{
    uint16_t            connHandle;
    uint8_t             attrPairLength;
    uint16_t            attrDataLength;
    uint8_t             attrData[BLE_ATT_MAX_MTU_LEN-ATT_READ_BY_GROUP_RESP_HEADER_SIZE];
    uint8_t             procedureStatus;
} GATT_EvtDiscPrimServResp_T;

Description

Structure for the GATTC_EVT_DISC_PRIM_SERV_RESP event.

Field Documentation

procedureStatusIndicates if more events are expected in the "Discover All Primary Services" procedure.See Procedure status for possible values.
FieldDescription
connHandleConnection handle associated with this connection.
attrPairLengthLength of each attribute pair in the attribute data list.
attrDataLengthTotal length of the attribute data list in bytes.
attrDataAttribute data list containing tuples in the format:<2-byte service handle> <2-byte End Group Handle> .The service handle is the handle of the discovered service.The End Group Handle is the handle of the last attribute of the discovered service.The Service UUID may be 16 or 128 bits.The number of tuples is determined by (attrDataLength / attrPairLength).Data is in little-endian format.