nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bt_nus_client_send()

int bt_nus_client_send ( struct bt_nus_client * nus,
const uint8_t * data,
uint16_t len )

#include <include/bluetooth/services/nus_client.h>

Send data to the server.

This function writes to the RX Characteristic of the server.

Note
This procedure is asynchronous. Therefore, the data to be sent must remain valid while the function is active.
Parameters
[in,out]nusNUS Client instance.
[in]dataData to be transmitted.
[in]lenLength of data.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.