GATT_EvtWriteResp_T

C

typedef struct GATT_EvtWriteResp_T
{
    uint16_t    connHandle;
    uint8_t     responseType;
    uint16_t    charHandle;
    uint16_t    valueOffset;
    uint16_t    writeLength;
    uint8_t     writeValue[BLE_ATT_MAX_MTU_LEN-ATT_PREP_WRITE_RESP_HEADER_SIZE];
}   GATT_EvtWriteResp_T;

Field Documentation

FieldDescription
connHandleConnection handle associated with this connection.
responseTypeType of write response. See ATT opcodes. Valid values are ATT_WRITE_RSP, ATT_PREPARE_WRITE_RSP, and ATT_EXECUTE_WRITE_RSP.
charHandleCharacteristic handle related to the write operation.
valueOffsetOffset at which the write operation occurred. Valid only if responseType is ATT_PREPARE_WRITE_RSP.
writeLengthLength of the data written. Valid only if responseType is ATT_PREPARE_WRITE_RSP.
writeValueBuffer containing the value written. Valid only if responseType is ATT_PREPARE_WRITE_RSP.