#include <ble_mds.h>
Initialize the Memfault Diagnostic Service.
- Parameters
-
| [out] | mds | Memfault Diagnostic Service instance. |
| [in] | cfg | Memfault Diagnostic Service configuration. |
- Return values
-
| NRF_SUCCESS | On success. |
| NRF_ERROR_NULL | If mds or cfg is NULL. |
| NRF_ERROR_NOT_FOUND | If the Memfault device serial is not configured. |
| NRF_ERROR_DATA_SIZE | If 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()