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

◆ ble_dis_init()

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.

Parameters
[in]dis_configDevice 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.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf dis_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()