Merge pull request #8601 from SiliconLabs/dev_9.0

Fix cannot write to characteristic unless read property is set for Silabs's board
This commit is contained in:
Dan Halbert 2023-11-15 08:40:31 -05:00 committed by GitHub
commit 0dffd06e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,8 @@ void common_hal_bleio_characteristic_set_value(bleio_characteristic_obj_t *self,
bufinfo->buf);
}
} else {
if (self->props & BT_GATT_CHRC_READ) {
if (self->props & BT_GATT_CHRC_READ || self->props & BT_GATT_CHRC_WRITE
|| self->props & BT_GATT_CHRC_WRITE_WITHOUT_RESP) {
sc = sl_bt_gatt_server_write_attribute_value(self->handle,
0,
bufinfo->len,