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

◆ bt_nsms_set_status()

int bt_nsms_set_status ( const struct bt_nsms * nsms_obj,
const char * status )

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

Set status.

This function sets status message and send notification to a connected peer, or all connected peers.

Parameters
[in]nsms_objPointer to Nordic Status Message instance.
[in]statusPointer to a status string.
Return values
0If the data is sent. Otherwise, a negative value is returned.