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:

Common types

This section lists the types common to the Generic Property mesh models.

Header file: 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.

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.

struct bt_mesh_prop
#include <gen_prop.h>

Property representation.

Public Members

uint16_t id

Property ID.

See also

Property IDs.

enum bt_mesh_prop_access user_access

User access flags for the property.

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.