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

FieldDescription
charHandleCharacteristic handle to write to.
charLengthLength of the characteristic data to write. Refer to the size of charValue for maximum value.
charValueBuffer containing the data to write.
writeTypeWrite operation type. Valid values are defined in ATT opcodes (e.g., ATT_WRITE_REQ, ATT_WRITE_CMD, etc.).
valueOffsetOffset for the data to be written. Use 0 for normal writes, or specify an offset for prepare write requests.
flagsFlags for the write operation, used only with writeType is ATT_EXECUTE_WRITE_REQ (see Execute write flags). Otherwise, set to 0.