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
| Field | Description |
|---|---|
| responseType | Type of write response, see ATT opcodes. Valid values are ATT_WRITE_RSP, ATT_PREPARE_WRITE_RSP, and ATT_EXECUTE_WRITE_RSP. |
| attrHandle | Attribute handle for which the write response is sent. Relevant for Prepare Write Response. |
| valueOffset | Offset of the data written. Relevant for Prepare Write Response. |
| writeLength | Length of the data written. Should match the length in the corresponding Prepare Write Request. |
| writeValue | Data written to the attribute. Should match the data in the corresponding Prepare Write Request. |
