Generic Power OnOff models

The Generic Power OnOff models allow remote control of the power-up behavior on a mesh device.

The Generic Power 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 Power OnOff mesh models.

Header file: include/bluetooth/mesh/gen_ponoff.h
group bt_mesh_ponoff

API for the Generic Power OnOff models.

Enums

enum bt_mesh_on_power_up

Generic Power OnOff On Power Up state values.

Values:

enumerator BT_MESH_ON_POWER_UP_OFF

On power up, set state to off.

enumerator BT_MESH_ON_POWER_UP_ON

On power up, set state to on.

enumerator BT_MESH_ON_POWER_UP_RESTORE

On power up, Restore the previous state value.

enumerator BT_MESH_ON_POWER_UP_INVALID

Invalid power up state.