Bluetooth: GATT: Add BT_GATT_WRITE_FLAG_EXECUTE flag

Add the BT_GATT_WRITE_FLAG_EXECUTE flag that indicates
whether a write callback is from an ATT execute write.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-01-03 13:39:57 +01:00 committed by Christopher Friedt
commit b78cd855b8
2 changed files with 10 additions and 0 deletions

View file

@ -98,6 +98,14 @@ enum {
* response) which doesn't generate any response.
*/
BT_GATT_WRITE_FLAG_CMD = BIT(1),
/** @brief Attribute write execute flag
*
* If set, indicates that write operation is a execute, which indicates
* the end of a long write, and will come after 1 or more
* @ref BT_GATT_WRITE_FLAG_PREPARE.
*/
BT_GATT_WRITE_FLAG_EXECUTE = BIT(2),
};
/** @brief GATT Attribute structure. */