Bluetooth: ATT: Handle Execute Write response
This adds the callback necessary to parse Execute Write response PDU: < ACL Data TX: Handle 3585 flags 0x00 dlen 6 ATT: Execute Write Request (0x18) len 1 Flags: Immediately write all pending values (0x01) > ACL Data RX: Handle 3585 flags 0x02 dlen 5 ATT: Execute Write Response (0x19) len 0 Change-Id: Ida1f73021097628bd5e60faa007441db9b92a38d Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
fb0f86fd2b
commit
2ee7df52f4
1 changed files with 9 additions and 0 deletions
|
@ -1258,6 +1258,14 @@ static uint8_t att_handle_prepare_write_rsp(struct bt_conn *conn,
|
|||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static uint8_t att_handle_exec_write_rsp(struct bt_conn *conn,
|
||||
struct bt_buf *buf)
|
||||
{
|
||||
BT_DBG("\n");
|
||||
|
||||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static uint8_t att_notify(struct bt_conn *conn, struct bt_buf *buf)
|
||||
{
|
||||
uint16_t handle;
|
||||
|
@ -1317,6 +1325,7 @@ static const struct {
|
|||
sizeof(struct bt_att_prepare_write_rsp) },
|
||||
{ BT_ATT_OP_EXEC_WRITE_REQ, att_exec_write_req,
|
||||
sizeof(struct bt_att_exec_write_req) },
|
||||
{ BT_ATT_OP_EXEC_WRITE_RSP, att_handle_exec_write_rsp, 0 },
|
||||
{ BT_ATT_OP_NOTIFY, att_notify,
|
||||
sizeof(struct bt_att_notify) },
|
||||
{ BT_ATT_OP_WRITE_CMD, att_write_cmd,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue