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
Structure for a GATT Write Request.
Field Documentation
| Field | Description |
|---|---|
| charHandle | Characteristic handle to write to. |
| charLength | Length of the characteristic data to write. Refer to the size of charValue for maximum value. |
| charValue | Buffer containing the data to write. |
| writeType | Write operation type. Valid values are defined in ATT opcodes (e.g., ATT_WRITE_REQ, ATT_WRITE_CMD, etc.). |
| valueOffset | Offset for the data to be written. Use 0 for normal writes, or specify an offset for prepare write requests. |
| flags | Flags for the write operation, used only with writeType is ATT_EXECUTE_WRITE_REQ (see Execute write flags). Otherwise, set to 0. |
