Generic Property models
The Generic Property models allow remote access to the Device Properties of a mesh node. Read more about Device Properties in Bluetooth Mesh properties.
The Generic Property models also feature their own common types, listed below. For types common to all models, see Bluetooth Mesh models.
The following configuration parameters are associated with the Generic Property models:
CONFIG_BT_MESH_PROP_MAXSIZE
- The largest available property value.CONFIG_BT_MESH_PROP_MAXCOUNT
- The largest number of properties available on a single Generic Property Server.
Common types
This section lists the types common to the Generic Property mesh models.
include/bluetooth/mesh/gen_prop.h
Enums
-
enum bt_mesh_prop_access
Access flags for properties
Values:
-
enumerator BT_MESH_PROP_ACCESS_PROHIBITED
Access to the property is prohibited.
-
enumerator BT_MESH_PROP_ACCESS_READ
Property may be read.
-
enumerator BT_MESH_PROP_ACCESS_WRITE
Property may be written.
-
enumerator BT_MESH_PROP_ACCESS_READ_WRITE
Property may be read or written.
-
enumerator BT_MESH_PROP_ACCESS_PROHIBITED
-
enum bt_mesh_prop_srv_kind
Property Server kinds.
Values:
-
enumerator BT_MESH_PROP_SRV_KIND_MFR
Manufacturer property server.
-
enumerator BT_MESH_PROP_SRV_KIND_ADMIN
Admin property server.
-
enumerator BT_MESH_PROP_SRV_KIND_USER
User property server.
-
enumerator BT_MESH_PROP_SRV_KIND_CLIENT
Client property server.
-
enumerator BT_MESH_PROP_SRV_KIND_MFR
-
struct bt_mesh_prop
- #include <gen_prop.h>
Property representation.
Public Members
-
uint16_t id
Property ID.
See also
-
enum bt_mesh_prop_access user_access
User access flags for the property.
-
uint16_t id
-
struct bt_mesh_prop_val
- #include <gen_prop.h>
Property value representation.
Public Members
-
struct bt_mesh_prop meta
Metadata for this property.
-
size_t size
Size of the property value.
-
uint8_t *value
Property value.
-
struct bt_mesh_prop meta