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

◆ bt_nus_send()

int bt_nus_send ( struct bt_conn * conn,
const uint8_t * data,
uint16_t len )

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

Send data.

This function sends data to a connected peer, or all connected peers.

Parameters
[in]connPointer to connection object, or NULL to send to all connected peers.
[in]dataPointer to a data buffer.
[in]lenLength of the data in the buffer.
Return values
0If the data is sent. Otherwise, a negative value is returned.