OVMS3-idf/components/bt/esp_ble_mesh
lly 19c9ae400b ble_mesh: Make model publication struct more compact
Previously the FastPeriodDivisor value was introduced to the model
publication struct. Based on the way it was grouped it seems the
intention was to fit it within the same octet as other bit fields,
but it actually makes the octet overflow by one bit. This ends up
creating another u8_t variable which in turn adds 24 bits of padding
after it.

To keep the size of the struct as compact as possible, group the flag
together with the key index, since that only requires 12 bits. Some
care is needed here, since the mesh stack does have special internal
key index values that require more than 12 bits such as
BLE_MESH_KEY_UNUSED and BLE_MESH_KEY_DEV. In this case restricting
ourselves to 12 bits is fine since the value in the model publication
struct follows 1:1 the value received in the Config Model Publication
Set message, and there the parameter is defined to be exactly 12 bits.
2020-01-13 10:40:13 +08:00
..
api ble_mesh: Make model publication struct more compact 2020-01-13 10:40:13 +08:00
btc ble_mesh: Fixes Provisioner not support friend feature 2020-01-13 10:39:52 +08:00
mesh_common ble_mesh: Use net_buf_simple_clone 2020-01-13 10:39:03 +08:00
mesh_core ble_mesh: Make model publication struct more compact 2020-01-13 10:40:13 +08:00
mesh_models ble_mesh: Rename ble mesh lock/unlock functions 2019-12-20 15:34:06 +08:00
Kconfig.in ble_mesh: Fixes Provisioner not support friend feature 2020-01-13 10:39:52 +08:00
README.md Provide BLE Mesh documentation 2019-10-31 17:08:26 +08:00

ESP-BLE-MESH Component

This is Espressif Bluetooth Low Energy Mesh component folder.

This component is a part of Espressif IoT Development Framework (ESP-IDF). For the latest documentation please refer to ESP-IDF Programming Guide.

The ESP-BLE-MESH networking enables many-to-many (m:m) device communications and is optimized for creating large-scale device networks.

ESP-BLE-MESH Documentation

ESP-BLE-MESH Examples

  • Refer to ESP-BLE-MESH Examples of Getting Started for the tutorials of ESP BLE Mesh examples.