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

◆ BT_MESH_PONOFF_SRV_INIT

#define BT_MESH_PONOFF_SRV_INIT (   _onoff_handlers,
  _dtt_change_handler,
  _on_power_up_change_handler 
)

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

Value:
{ \
&_bt_mesh_ponoff_onoff_intercept), \
.dtt = BT_MESH_DTT_SRV_INIT(_dtt_change_handler), \
.onoff_handlers = _onoff_handlers, \
.update = _on_power_up_change_handler, \
}
#define BT_MESH_DTT_SRV_INIT(_update)
Initialization parameters for Generic Default Transition Time Server.
Definition: gen_dtt_srv.h:35
#define BT_MESH_ONOFF_SRV_INIT(_handlers)
Init parameters for a Generic OnOff Server model instance.
Definition: gen_onoff_srv.h:33

Initialization parameters for Generic Power OnOff Server model.

Parameters
[in]_onoff_handlersHandlers for the underlying Generic OnOff Server.
[in]_dtt_change_handlerHandler function for changes to the Default Transition Time Server state.
[in]_on_power_up_change_handlerHandler function for changes to the OnPowerUp state.