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

◆ ble_mds_init()

uint32_t ble_mds_init ( struct ble_mds * mds,
const struct ble_mds_config * cfg )

#include <ble_mds.h>

Initialize the Memfault Diagnostic Service.

Parameters
[out]mdsMemfault Diagnostic Service instance.
[in]cfgMemfault Diagnostic Service configuration.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf mds or cfg is NULL.
NRF_ERROR_NOT_FOUNDIf the Memfault device serial is not configured.
NRF_ERROR_DATA_SIZEIf a Memfault value does not fit in the local buffers.
Returns
In addition, this function may return any error returned by the following SoftDevice functions:
  • sd_ble_uuid_vs_add()
  • sd_ble_gatts_service_add()
  • sd_ble_gatts_characteristic_add()