1.1.2.1.2.3.24 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

FieldDescription
charHandleHandle of the characteristic to be written.
charLengthLength of the characteristic to be written. For Max value refer size of charValue.
charValueData to be written.
writeTypeType of the write operation. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed.
valueOffsetThe 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.
flagsFlag. Used only when writeType is ATT_EXECUTE_WRITE_REQ (See Execute write flag). Otherwise always 0).