nRF Connect SDK API 0.1.0
|
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.
[in] | conn | Pointer to connection object, or NULL to send to all connected peers. |
[in] | data | Pointer to a data buffer. |
[in] | len | Length of the data in the buffer. |
0 | If the data is sent. Otherwise, a negative value is returned. |