nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
lightness_srv.h File Reference
#include <zephyr/bluetooth/mesh.h>
#include <bluetooth/mesh/lightness.h>
#include <bluetooth/mesh/gen_lvl_srv.h>
#include <bluetooth/mesh/gen_ponoff_srv.h>
#include <bluetooth/mesh/model_types.h>

Go to the source code of this file.

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.