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

◆ ssf_client_notif_register()

int ssf_client_notif_register ( struct ssf_client_notif_listener listener,
void *  context 
)

Register a listener. Enables the listener's handler to be called when receiving notifications from server with associated service id.

Parameters
[in]listenerThe listener to register.
[in]contextOptional user context passed to handler function when a notification is received.
Returns
0 on success, -SSF_EINVAL if parameters are invalid. -SSF_EALREADY if the listener is already registered. -SSF_ENOBUFS if max number of listeners have already been registered.