#include <ble_nus.h>
Function for initializing the Nordic UART Service.
- Parameters
-
| [out] | nus | Nordic UART Service structure. This structure must be supplied by the application. It is initialized by this function and will later be used to identify this particular service instance. |
| [in] | nus_config | Information needed to initialize the service. |
- Return values
-
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If nus or nus_config is NULL. |
- Returns
- In addition, this function may return any error returned by the following SoftDevice functions:
- sd_ble_gatts_service_add()
- sd_ble_gatts_characteristic_add()
- sd_ble_uuid_vs_add()