From 8f423c26d04db1285e1f7c2ff395ccf62fe2e3b4 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sun, 14 May 2017 19:04:49 +0200 Subject: [PATCH] nrf5/modules/ubluepy: Pass on buffer to write in characteristic write central mode. --- nrf5/modules/ubluepy/ubluepy_characteristic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nrf5/modules/ubluepy/ubluepy_characteristic.c b/nrf5/modules/ubluepy/ubluepy_characteristic.c index 2a33bee8f7..18b58809f3 100644 --- a/nrf5/modules/ubluepy/ubluepy_characteristic.c +++ b/nrf5/modules/ubluepy/ubluepy_characteristic.c @@ -139,8 +139,8 @@ STATIC mp_obj_t char_write(mp_obj_t self_in, mp_obj_t data) { #if MICROPY_PY_UBLUEPY_CENTRAL ble_drv_attr_c_write(self->p_service->p_periph->conn_handle, self->handle, - 0, - NULL); + bufinfo.len, + bufinfo.buf); #endif } return mp_const_none;