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

◆ bt_mesh_lightness_clamp()

static uint16_t bt_mesh_lightness_clamp ( const struct bt_mesh_lightness_srv srv,
uint16_t  lightness 
)
inlinestatic

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

Clamp lightness to lightness range.

Returns
lightness clamped to the lightness range set on the Light Lightness Server model pointed to by srv if lightness > 0, zero otherwise.