Generic OnOff models¶
The Generic OnOff models allows remote control of boolean states on a mesh device.
The Generic OnOff models also feature their own common types, listed below. For types common to all models, see Bluetooth Mesh models.
Common types¶
This section lists the types common to the Generic OnOff mesh models.
Header file:
include/bluetooth/mesh/gen_onoff.h
-
group
bt_mesh_onoff
Common API for the Generic OnOff models.
-
struct
bt_mesh_onoff_set
¶ - #include <gen_onoff.h>
Mandatory parameters for the Generic OnOff Set message.
Public Members
-
bool
on_off
¶ State to set.
-
const struct bt_mesh_model_transition *
transition
¶ Transition parameters.
-
bool
-
struct
bt_mesh_onoff_status
¶ - #include <gen_onoff.h>
Parameters for the Generic OnOff Status message.
-
struct