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

◆ bt_mesh_time_srv_time_status_send()

int bt_mesh_time_srv_time_status_send ( struct bt_mesh_time_srv srv,
struct bt_mesh_msg_ctx *  ctx 
)

#include <include/bluetooth/mesh/time_srv.h>

Publish an unsolicited Time Status message.

Parameters
[in]srvTime Server instance.
[in]ctxMessage context, or NULL to publish with the configured parameters.
Returns
0 Successfully published the current Time state.
Return values
-EOPNOTSUPPThe server Time Role state does not support sending of unsolicited Time Status messages.
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.