nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_mds_cb_register()

int bt_mds_cb_register ( const struct bt_mds_cb cb)

#include <include/bluetooth/services/mds.h>

Register the Memfault Diagnostic service callback.

This function should be called before enabling Bluetooth stack to ensure proper access grating to MDS characteristics data through access_enable callback.

Parameters
[in]cbMemfault callback structure. This parameter can be set to NULL but it will let the first connected client access the Memfault data without authentication.
Return values
0If the operation was successful. Otherwise, a negative error code is returned