nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_nus_client_string_send()

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.

Parameters
[in]nus_clientNUS client structure.
[in]stringString to be sent.
[in]lengthLength of the string.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf nus_client is NULL.
NRF_ERROR_INVALID_PARAMIf length is larger than the client maximum data length.
NRF_ERROR_INVALID_STATEIf the NUS Client connection handle is invalid.
Returns
In addition, this function may return any error returned by the following functions: