GATTC_WriteParams_T
C
typedef struct GATTC_WriteParams_T { uint16_t charHandle; uint16_t charLength; uint8_t charValue[BLE_ATT_MAX_MTU_LEN - ATT_WRITE_HEADER_SIZE]; uint8_t writeType; uint16_t valueOffset; uint8_t flags; } GATTC_WriteParams_T;
Description
GATT Write Request parameters.
Field Documentation
Field | Description |
---|---|
charHandle | Handle of the characteristic to be written. |
charLength | Length of the characteristic to be written. For Max value refer size of charValue. |
charValue | Data to be written. |
writeType | Type of the write operation. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed. |
valueOffset | The offset of the first octet to be written. Set to offset where attribute part value is to be written for Prepare Write request. For all other write types set to 0. |
flags | Flag. Used only when writeType is ATT_EXECUTE_WRITE_REQ (See Execute write flag). Otherwise always 0). |