1.1.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;

Field Documentation

FieldDescription
connHandleConnection handle associated with this connection.
attrHandleHandle of the attribute to be written.
writeTypeWrite Type. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed.
flagsFlags for Execute Write Request. See Execute write flag.
valueOffsetValue offset for Prepare Write Request.
writeDataLengthLength of the data to be written.
writeValueValue to be written to the attribute.