This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to Write Without Response when transmitting from NUS Central Sample

Hi,

Is it possible to use write without response when sending data from NUS Central app?

I'm using NCS SDK v1.50

I replaced in nus_client.c:

err = bt_gatt_write(nus_c->conn, &nus_c->rx_write_params);

with

err = bt_gatt_write_without_response(nus_c->conn,nus_c->handles.rx, data, len, false);

and receive following output when try to send:

[00:00:08.968,872] [1;33m<wrn> central_uart: NUS send timeout[0m
[00:00:08.968,872] [1;33m<wrn> central_uart: Failed to send data over BLE connection(err -69)[0m
[00:00:09.118,988] [1;33m<wrn> central_uart: NUS send timeout[0m

Thanks!

Related