nRF Connect SDK API 0.1.0
|
API for the Light Lightness Server. More...
Data Structures | |
struct | bt_mesh_lightness_srv_handlers |
struct | bt_mesh_lightness_srv |
Macros | |
#define | BT_MESH_LIGHTNESS_SRV_INIT(_handlers) |
Initialization parameters for Light Lightness Server model. | |
#define | BT_MESH_MODEL_LIGHTNESS_SRV(_srv, ...) |
Light Lightness model entry. | |
#define | BT_MESH_LIGHT_PURPOSE_METADATA_ID 0x0002 |
#define | BT_MESH_LIGHT_LIGHTNESS_RANGE_METADATA_ID 0x0003 |
#define | BT_MESH_LIGHT_PURPOSE_METADATA(light_purpose) |
#define | BT_MESH_LIGHT_LIGHTNESS_RANGE_METADATA(range_min, range_max) |
Functions | |
static uint16_t | bt_mesh_lightness_clamp (const struct bt_mesh_lightness_srv *srv, uint16_t lightness) |
Clamp lightness to lightness range. | |
int | bt_mesh_lightness_srv_pub (struct bt_mesh_lightness_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lightness_status *status) |
Publish the current Light state. | |
API for the Light Lightness Server.