GATT_EvtWrite_T
C
typedef struct GATT_EvtWrite_T
{
uint16_t connHandle;
uint16_t attrHandle;
uint8_t writeType;
uint8_t flags;
uint16_t valueOffset;
uint16_t writeDataLength;
uint8_t writeValue[BLE_ATT_MAX_MTU_LEN - ATT_WRITE_HEADER_SIZE];
} GATT_EvtWrite_T;Description
Structure for GATTS_EVT_WRITE event.
Field Documentation
| Field | Description |
|---|---|
| connHandle | Connection handle associated with this connection. |
| attrHandle | Handle of the attribute being written to. |
| writeType | Type of write operation being requested. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed. |
| flags | Flags specific to an Execute Write Request (see Execute write flags). |
| valueOffset | Offset for a prepare write request; specifies where to start writing. |
| writeDataLength | Length of the data being written. |
| writeValue | Data buffer containing the value to write to the attribute. |
