Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_mesh_cfg.h File Reference

> More...

Data Structures

struct  wiced_bt_mesh_sensor_config_descriptor_t
 Sensor descriptor structure exchanged between the application and the Sensor Model. More...
 
struct  wiced_bt_mesh_sensor_config_setting_t
 Sensor setting configuration exchanged between the application and the Sensor Model. More...
 
struct  wiced_bt_mesh_sensor_config_column_data_t
 Sensor column data configuration exchanged between the application and the Sensor Model. More...
 
struct  wiced_bt_mesh_sensor_config_cadence_t
 Defines Configuration of Sensor Cadence in the structure between the application and the Sensor Model. More...
 
struct  wiced_bt_mesh_core_config_sensor_t
 Defines configuration data of the one sensor in the array of structure wiced_bt_mesh_core_config_element_t. More...
 

Macros

#define PACKED
 
#define WICED_BT_MESH_PROPERTY_ID_READABLE   0x01
 Property is readable.
 
#define WICED_BT_MESH_PROPERTY_ID_WRITABLE   0x02
 Property is writable.
 
#define WICED_BT_MESH_CORE_NVRAM_CHUNK_MAX_SIZE   255
 
Supported features bitmap

The following is the list of optional features that a mesh node can support.

#define WICED_BT_MESH_CORE_FEATURE_BIT_RELAY   0x0001
 Relay feature support: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_FRIEND   0x0002
 Friend feature support: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_LOW_POWER   0x0004
 Low Power feature support: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_GATT_PROXY_SERVER   0x0008
 GATT Proxy support: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_PB_GATT   0x0010
 PB_GATT support: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_NO_ADV_BEARER   0x0020
 For GATT client mode: advert scanning but no advert sending and receiving: 0 = False, 1 = True.
 
#define WICED_BT_MESH_CORE_FEATURE_BIT_DISABLE_NET_BEACON   0x0040
 Makes net beacon disabled by default: 0 = False, 1 = True.
 
OOB bitmap

The OOB field is used to help drive the provisioning process by indicating the availability of OOB data, such as a public key of the device.

#define WICED_BT_MESH_CORE_OOB_BIT_OTHER   0x0001
 Other.
 
#define WICED_BT_MESH_CORE_OOB_BIT_ELECTRONIC_URI   0x0002
 Electronic / URI.
 
#define WICED_BT_MESH_CORE_OOB_BIT_2D_CODE   0x0004
 2D machine-readable code
 
#define WICED_BT_MESH_CORE_OOB_BIT_BAR_CODE   0x0008
 Bar code.
 
#define WICED_BT_MESH_CORE_OOB_BIT_NFC   0x0010
 Near Field Communication (NFC)
 
#define WICED_BT_MESH_CORE_OOB_BIT_NUMBER   0x0020
 Number.
 
#define WICED_BT_MESH_CORE_OOB_BIT_STRING   0x0040
 String.
 
#define WICED_BT_MESH_CORE_OOB_BIT_CERTIFICATE   0x0080
 Certificate-based provisioning.
 
#define WICED_BT_MESH_CORE_OOB_BIT_RECORD   0x0100
 Provisioning records.
 
#define WICED_BT_MESH_CORE_OOB_BIT_RFU3   0x0200
 Reserved for Future Use.
 
#define WICED_BT_MESH_CORE_OOB_BIT_RFU4   0x0400
 Reserved for Future Use.
 
#define WICED_BT_MESH_CORE_OOB_BIT_ON_BOX   0x0800
 On box.
 
#define WICED_BT_MESH_CORE_OOB_BIT_INSIDE_BOX   0x1000
 Inside box.
 
#define WICED_BT_MESH_CORE_OOB_BIT_ON_PIECE_OF_PAPER   0x2000
 On piece of paper.
 
#define WICED_BT_MESH_CORE_OOB_BIT_INSIDE_MANUAL   0x4000
 Inside manual.
 
#define WICED_BT_MESH_CORE_OOB_BIT_ON_DEVICE   0x8000
 On device.
 

Typedefs

struct {
   uint16_t   company_id
 Company ID of the model. More...
 
   uint16_t   model_id
 Model ID.
 
   void *   p_message_handler
 message handler for this model
 
   void *   p_scene_store_handler
 function to call to store the scene contents
 
   void *   p_scene_recall_handler
 function to call to recall the scene contents
 
wiced_bt_mesh_core_config_model_t
 Defines configuration data of the one model in the array models of the structure wiced_bt_mesh_core_config_element_t.
 
struct {
   uint16_t   id
 Property ID of the property. More...
 
   uint8_t   type
 Property type (client, admin, manufacturer or user.
 
   uint8_t   user_access
 User Access state of the property.
 
   uint8_t   max_len
 len for the property value
 
   uint8_t *   value
 pointer to the property value
 
wiced_bt_mesh_core_config_property_t
 Defines configuration data of the one property in the array properties of the structure wiced_bt_mesh_core_config_element_t.
 
struct {
   uint16_t   location
 A location description as defined in the GATT Bluetooth Namespace Descriptors section of the Bluetooth SIG Assigned Numbers.
 
   uint32_t   default_transition_time
 Default transition time for models of the element in milliseconds.
 
   uint8_t   onpowerup_state
 Default element behavior on power up.
 
   uint16_t   default_level
 Default value of the variable controlled on this element (for example power, lightness, temperature, hue...)
 
   uint16_t   range_min
 Minimum value of the variable controlled on this element (for example power, lightness, temperature, hue...)
 
   uint16_t   range_max
 Maximum value of the variable controlled on this element (for example power, lightness, temperature, hue...)
 
   uint8_t   move_rollover
 If true when level gets to range_max during move operation, it switches to min, otherwise move stops. More...
 
   uint8_t   properties_num
 Number of properties in the properties array.
 
   wiced_bt_mesh_core_config_property_t *   properties
 Array of properties of that element. More...
 
   uint8_t   sensors_num
 Number of sensors in the sensor array.
 
   wiced_bt_mesh_core_config_sensor_t *   sensors
 Array of sensors of that element.
 
   uint8_t   models_num
 Number of models in the array models.
 
   wiced_bt_mesh_core_config_model_t *   models
 Array of models located in that element. More...
 
wiced_bt_mesh_core_config_element_t
 Defines configuration data of the one element in the array elements of the structure wiced_bt_mesh_core_config_t.
 
struct {
   uint8_t   rssi_factor
 The contribution of the RSSI measured by the Friend node used in Friend Offer Delay calculations.Must be <= 3. More...
 
   uint8_t   receive_window_factor
 The contribution of the supported Receive Window used in Friend Offer Delay calculations.Must be <= 3. More...
 
   uint8_t   min_cache_size_log
 The minimum number of messages that the Friend node can store in its Friend Cache.Must be >= 1 and <= 7. More...
 
   uint8_t   receive_delay
 Receive delay in 1 ms units to be requested by the Low Power node. More...
 
   uint32_t   poll_timeout
 Poll timeout in 100ms units to be requested by the Low Power node. More...
 
   uint8_t   startup_unprovisioned_adv_to
 Interval in seconds of the advertisments of unprovisioned beacon and service on startup. More...
 
wiced_bt_mesh_core_config_low_power_t
 Defines configuration data for Low Power Feature in the wiced_bt_mesh_core_config_t.
 
struct {
   uint8_t   receive_window
 Receive Window value in milliseconds supported by the Friend node. More...
 
   uint16_t   cache_buf_len
 Length of the buffer for the cache.
 
   uint16_t   max_lpn_num
 Max number of Low Power Nodes with established friendship. More...
 
wiced_bt_mesh_core_config_friend_t
 Defines configuration data for Friend Feature in the wiced_bt_mesh_core_config_t.
 
struct {
   uint16_t   company_id
 Company identifier assigned by the Bluetooth SIG.
 
   uint16_t   product_id
 Vendor-assigned product identifier.
 
   uint16_t   vendor_id
 Vendor-assigned product version identifier.
 
   uint16_t   features
 A bit field indicating the device features (see Supported features bitmap)
 
   uint16_t   oob
 The OOB field (see OOB bitmap). More...
 
   const char *   uri
 Optional URI (can be NULL) for advertising along with the Unprovisioned Device beacon. More...
 
   wiced_bt_mesh_core_config_friend_t   friend_cfg
 Friend feature configuration. More...
 
   wiced_bt_mesh_core_config_low_power_t   low_power
 Low Power configuration. More...
 
   wiced_bool_t   gatt_client_only
 If TRUE, the device only connects to mesh over GATT proxy. More...
 
   uint8_t   elements_num
 Number of elements in the following array elements.
 
   wiced_bt_mesh_core_config_element_t *   elements
 Array of elements defined by tFND_ELEMENT with size elements_num.
 
wiced_bt_mesh_core_config_t
 To calculate max_lpn_num: #define MSG_OFFSET 20 // offset in friend structure defined internally in mesh core library is 20 bytes #define MSG_QUE_SIZE 33 // Each message in the queue takes 33 bytes #define FRIEND_LPN_STATE 140 // sizeof friend LPN structure defined internally in mesh core library is 140 bytes uint16_t max_lpn_msg_num; // number of messages user application needs in the queue uint64_t app_available_memory; // available user application memory. More...
 

Variables

wiced_bt_mesh_core_config_t mesh_config
 

Detailed Description

>

Definitions for Bluetooth Mesh Configuration

Variable Documentation

uint16_t company_id

Company ID of the model.

Company identifier assigned by the Bluetooth SIG.

It is 0 for SIG models

Friend feature configuration.

It is ignored if Friend feature isn't supported (no FRIEND bit in the features).

wiced_bool_t gatt_client_only

If TRUE, the device only connects to mesh over GATT proxy.

uint16_t id

Property ID of the property.

Low Power configuration.

It is ignored if Low Power feature isn't supported (no LOW_POWER bit in the features).

uint16_t max_lpn_num

Max number of Low Power Nodes with established friendship.

Must be > 0 if Friend feature is supported. See note below for calculating max_lpn_num

uint8_t min_cache_size_log

The minimum number of messages that the Friend node can store in its Friend Cache.Must be >= 1 and <= 7.

MinCacheSizeLog = 2 * * min_cache_size_log

Array of models located in that element.

Model data is defined by structure wiced_bt_mesh_core_config_model_t

uint8_t move_rollover

If true when level gets to range_max during move operation, it switches to min, otherwise move stops.

uint16_t oob

The OOB field (see OOB bitmap).

It indicates the availability of OOB data.

uint32_t poll_timeout

Poll timeout in 100ms units to be requested by the Low Power node.

It should be between 0x00000a and 0x34bbff

Array of properties of that element.

Properties data is defined by structure wiced_bt_mesh_core_config_property_t

uint8_t receive_delay

Receive delay in 1 ms units to be requested by the Low Power node.

It should be >= 0x0a

uint8_t receive_window

Receive Window value in milliseconds supported by the Friend node.

It must be > 0.

uint8_t receive_window_factor

The contribution of the supported Receive Window used in Friend Offer Delay calculations.Must be <= 3.

ReceiveWindowFactor = 1 + (receive_window_factor * 0.5)

uint8_t rssi_factor

The contribution of the RSSI measured by the Friend node used in Friend Offer Delay calculations.Must be <= 3.

RSSIFactor = 1 + (rssi_factor * 0.5)

uint8_t startup_unprovisioned_adv_to

Interval in seconds of the advertisments of unprovisioned beacon and service on startup.

Value 0 means default 30 seconds.

const char* uri

Optional URI (can be NULL) for advertising along with the Unprovisioned Device beacon.

Can start from "HTTP://" or "HTTPS://"