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

◆ BT_MESH_TIME_SRV_INIT

#define BT_MESH_TIME_SRV_INIT ( _time_update_cb)

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

Value:
{ \
.time_update_cb = _time_update_cb, \
.pub = { .update = _bt_mesh_time_srv_update_handler, \
.msg = NET_BUF_SIMPLE(BT_MESH_MODEL_BUF_LEN( \
BT_MESH_TIME_OP_TIME_SET, \
BT_MESH_TIME_MSG_LEN_TIME_SET)) }, \
}

Initialization parameters for a Time Server model instance.

Parameters
[in]_time_update_cbTime update callback (optional).