![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_dis_init | ( | const struct ble_dis_config * | dis_config | ) |
#include <ble_dis.h>
Initialize the Device Information Service.
This call allows the application to initialize the device information service. It adds the DIS service and DIS characteristics to the database.
| [in] | dis_config | Device Information Service configuration. If ble_dis_config::values is NULL the values are set based on the CONFIG_BLE_DIS_* Kconfig options. If a member of ble_dis_values is left NULL or empty string the characteristic is omitted. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If dis_config is NULL. |