gatt_client: allow Write Without Response independent of other requests

This commit is contained in:
Matthias Ringwald 2019-11-18 10:51:01 +01:00
parent 332b525621
commit 695e959a42
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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;