nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
gen_ponoff_srv.h File Reference
#include <zephyr/bluetooth/mesh.h>
#include <bluetooth/mesh/gen_ponoff.h>
#include <bluetooth/mesh/gen_onoff_srv.h>
#include <bluetooth/mesh/gen_dtt_srv.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_ponoff_srv
 

Macros

#define BT_MESH_PONOFF_SRV_INIT(_onoff_handlers, _dtt_change_handler, _on_power_up_change_handler)
 Initialization parameters for Generic Power OnOff Server model.
 
#define BT_MESH_MODEL_PONOFF_SRV(_srv)
 Generic Power OnOff model entry.
 

Functions

void bt_mesh_ponoff_srv_set (struct bt_mesh_ponoff_srv *srv, enum bt_mesh_on_power_up on_power_up)
 Set the OnPowerUp state of a Power OnOff server.
 
int bt_mesh_ponoff_srv_pub (struct bt_mesh_ponoff_srv *srv, struct bt_mesh_msg_ctx *ctx)
 Publish the current OnPowerUp state.