1.2.2.1.2.3.19 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
Data structure for GATTS_EVT_WRITE event.
Field Documentation
Field | Description |
---|---|
connHandle | Connection handle associated with this connection. |
attrHandle | Handle of the attribute to be written. |
writeType | Write Type. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed. |
flags | Flags for Execute Write Request. See Execute write flag. |
valueOffset | Value offset for Prepare Write Request. |
writeDataLength | Length of the data to be written. |
writeValue | Value to be written to the attribute. |