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;

Description

Structure for the GATTS_EVT_WRITE event.

Field Documentation

FieldDescription
connHandleConnection handle associated with this connection.
attrHandleHandle of the attribute being written to.
writeTypeType of write operation being requested. See ATT opcodes. Only ATT_WRITE_REQ/ATT_WRITE_CMD/ATT_PREPARE_WRITE_REQ/ATT_EXECUTE_WRITE_REQ are allowed.
flagsFlags specific to an Execute Write Request (see Execute write flags).
valueOffsetOffset for a prepare write request; specifies where to start writing.
writeDataLengthLength of the data being written.
writeValueData buffer containing the value to write to the attribute.