GATTS_SendWriteRespParams_T

C

typedef struct GATTS_SendWriteRespParams_T
{
    uint8_t     responseType;
    uint16_t    attrHandle;
    uint16_t    valueOffset;
    uint16_t    writeLength;
    uint8_t     writeValue[BLE_ATT_MAX_MTU_LEN - ATT_WRITE_RESP_HEADER_SIZE];
}   GATTS_SendWriteRespParams_T;

Description

Structure for sending a GATT Write Response.

Field Documentation

FieldDescription
responseTypeType of write response, see ATT opcodes. Valid values are ATT_WRITE_RSP, ATT_PREPARE_WRITE_RSP, and ATT_EXECUTE_WRITE_RSP.
attrHandleAttribute handle for which the write response is sent. Relevant for Prepare Write Response.
valueOffsetOffset of the data written. Relevant for Prepare Write Response.
writeLengthLength of the data written. Should match the length in the corresponding Prepare Write Request.
writeValueData written to the attribute. Should match the data in the corresponding Prepare Write Request.