Write to characteristic locally with WRITE_NO_RESPONSE

This commit is contained in:
silabs-ChatNguyen 2023-11-14 11:53:12 +07:00
parent ed7c714fe2
commit e1c15629cf
1 changed files with 2 additions and 1 deletions

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,