Skip to content

Commit e1c1562

Browse files
Write to characteristic locally with WRITE_NO_RESPONSE
1 parent ed7c714 commit e1c1562

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/silabs/common-hal/_bleio/Characteristic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ void common_hal_bleio_characteristic_set_value(bleio_characteristic_obj_t *self,
273273
bufinfo->buf);
274274
}
275275
} else {
276-
if (self->props & BT_GATT_CHRC_READ) {
276+
if (self->props & BT_GATT_CHRC_READ || self->props & BT_GATT_CHRC_WRITE
277+
|| self->props & BT_GATT_CHRC_WRITE_WITHOUT_RESP) {
277278
sc = sl_bt_gatt_server_write_attribute_value(self->handle,
278279
0,
279280
bufinfo->len,

0 commit comments

Comments
 (0)