1.1.2.1.2.3.9 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;

Field Documentation

FieldDescription
connHandleConnection handle associated with this connection.
attrPairLengthLength of each tuple in attribute data.
attrDataLengthTotal length of all tuples.
attrDataAttribute data list. Contains Tuples in following format: <2-byte service handle> <2-byte End Group Handle><Service UUID> Service handle is the handle of service discovered, End Group Handle is the handle of the last attribute of the service discovered Service UUID may be 16 or 128-bit. Multiple tuples received in a single event have the same service UUID length Number of tuples = (attrDataLength/attrPairLength). Note that the format of the data is little endian.
procedureStatus"Discover All Primary Services" Procedure may not finish in one ATT request. Status indicates if further events are expected. See Procedure status definition.