From 695e959a42777f8a81e84a8d9932f73a91b3e9a4 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 18 Nov 2019 10:51:01 +0100 Subject: [PATCH] gatt_client: allow Write Without Response independent of other requests --- CHANGELOG.md | 1 + src/ble/gatt_client.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69ff64bbf..2a1cd6538 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - L2CAP ERTM: reject incoming connection if ERTM is configured as mandatory but not supported by remote - L2CAP ERTM: send ERTM I-frames round robin with other data - L2CAP: send le data channel sdus round robin with other data +- GATT Client: allow Write Without Response independent of other requests ### Added - GAP: allow to reject GAP classic connection via gap_register_classic_connection_filter diff --git a/src/ble/gatt_client.c b/src/ble/gatt_client.c index 7979efb40..c15cbea78 100644 --- a/src/ble/gatt_client.c +++ b/src/ble/gatt_client.c @@ -1870,7 +1870,6 @@ uint8_t gatt_client_read_multiple_characteristic_values(btstack_packet_handler_t uint8_t gatt_client_write_value_of_characteristic_without_response(hci_con_handle_t con_handle, uint16_t value_handle, uint16_t value_length, uint8_t * value){ gatt_client_t * peripheral = provide_context_for_conn_handle(con_handle); if (peripheral == NULL) return BTSTACK_MEMORY_ALLOC_FAILED; - if (is_ready(peripheral) == 0) return GATT_CLIENT_IN_WRONG_STATE; if (value_length > peripheral_mtu(peripheral) - 3) return GATT_CLIENT_VALUE_TOO_LONG; if (!att_dispatch_client_can_send_now(peripheral->con_handle)) return GATT_CLIENT_BUSY;