nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
gen_prop_srv.h File Reference
#include <bluetooth/mesh/gen_prop.h>
#include <bluetooth/mesh/model_types.h>
#include <zephyr/sys/util.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_prop_srv
 

Macros

#define BT_MESH_PROP_SRV_INIT(_properties, _property_count, _get, _set)
 Initialization parameters for a Generic Property server models instance.
 
#define BT_MESH_PROP_SRV_USER_INIT()   {}
 Initialization parameters for a Generic Property server models acting as a Generic User Property Server.
 
#define BT_MESH_PROP_SRV_ADMIN_INIT(_properties, _get, _set)    BT_MESH_PROP_SRV_INIT(_properties, ARRAY_SIZE(_properties), _get, _set)
 Initialization parameters for a Generic Property server models acting as a Generic Admin Property Server.
 
#define BT_MESH_PROP_SRV_MFR_INIT(_properties, _get)    BT_MESH_PROP_SRV_INIT(_properties, ARRAY_SIZE(_properties), _get, NULL)
 Initialization parameters for a Generic Property server models acting as a Generic Manufacturer Property Server.
 
#define BT_MESH_PROP_SRV_CLIENT_INIT(_properties)
 Initialization parameters for a Generic Property server models acting as a Generic Client Property Server.
 
#define BT_MESH_MODEL_PROP_SRV_USER(_srv)
 Generic User Property Server model composition data entry.
 
#define BT_MESH_MODEL_PROP_SRV_ADMIN(_srv)
 Generic Admin Property Server model composition data entry.
 
#define BT_MESH_MODEL_PROP_SRV_MFR(_srv)
 Generic Manufacturer Property Server model data entry.
 
#define BT_MESH_MODEL_PROP_SRV_CLIENT(_srv)
 Generic Client Property Server model data entry.
 

Enumerations

enum  bt_mesh_prop_srv_state { BT_MESH_PROP_SRV_STATE_NONE , BT_MESH_PROP_SRV_STATE_LIST , BT_MESH_PROP_SRV_STATE_PROP }
 

Functions

int bt_mesh_prop_srv_pub_list (struct bt_mesh_prop_srv *srv, struct bt_mesh_msg_ctx *ctx)
 Publish a list of all properties on the server.
 
int bt_mesh_prop_srv_pub (struct bt_mesh_prop_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_prop_val *val)
 Publish a property value.