nrf5/modules/ubluepy: Pass on buffer to write in characteristic write central mode.

This commit is contained in:
Glenn Ruben Bakke 2017-05-14 19:04:49 +02:00 committed by glennrub
parent ceb2602005
commit 8f423c26d0

View File

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