![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_nus_client_string_send | ( | struct ble_nus_client * | nus_client, |
| const uint8_t * | string, | ||
| uint16_t | length ) |
#include <ble_nus_client.h>
Send a string to the server.
This function writes the RX characteristic of the server.
| [in] | nus_client | NUS client structure. |
| [in] | string | String to be sent. |
| [in] | length | Length of the string. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If nus_client is NULL. |
| NRF_ERROR_INVALID_PARAM | If length is larger than the client maximum data length. |
| NRF_ERROR_INVALID_STATE | If the NUS Client connection handle is invalid. |