Skip to content

Commit

Permalink
samples: bluetooth: mesh: Update NLC profile versions to 1.0.1
Browse files Browse the repository at this point in the history
Updating composition data page 2 records with supported latest NLC
profile version.

Signed-off-by: alperen sener <[email protected]>
  • Loading branch information
m-alperen-sener authored and rlubos committed Dec 19, 2024
1 parent 40445aa commit 077413a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions samples/bluetooth/mesh/light_ctrl/src/model_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ static const uint8_t cmp2_elem_offset1[2] = { 0, 1 };
static const uint8_t cmp2_elem_offset2[1] = { 0 };

static const struct bt_mesh_comp2_record comp_rec[2] = {
{
{/* Basic Lightness Controller NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_BASIC_LIGHTNESS_CONTROLLER,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 2,
.elem_offset = cmp2_elem_offset1,
.data_len = 0
},
{
.id = BT_MESH_NLC_PROFILE_ID_ENERGY_MONITOR, /* Energy Monitor NLC Profile 1.0 */
{ /* Energy Monitor NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_ENERGY_MONITOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset2,
.data_len = 0
Expand Down
8 changes: 4 additions & 4 deletions samples/bluetooth/mesh/light_dimmer/src/model_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ struct scene_btn_ctx {
static const uint8_t cmp2_elem_offset[1] = { 0 };

static const struct bt_mesh_comp2_record comp_rec[2] = {
{
{/* Basic Scene Selector NLC Profile 1.0.1*/
.id = BT_MESH_NLC_PROFILE_ID_BASIC_SCENE_SELECTOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset,
.data_len = 0
},
{
{/* Dimming Control NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_DIMMING_CONTROL,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset,
.data_len = 0
Expand Down
16 changes: 8 additions & 8 deletions samples/bluetooth/mesh/sensor_server/src/model_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,38 +96,38 @@ static const uint8_t cmp2_elem_offset_motion[1] = { 2 };
static const uint8_t cmp2_elem_offset_people_count[1] = { 3 };

static const struct bt_mesh_comp2_record comp_rec[4] = {
{
{/* Ambient Light Sensor NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_AMBIENT_LIGHT_SENSOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset_ambient_light,
.data_len = 0
},
{
{/* Occupancy Sensor NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset_presence,
.data_len = 0
},
{
{/* Occupancy Sensor NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset_motion,
.data_len = 0
},
{
{/* Occupancy Sensor NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
.version.x = 1,
.version.y = 0,
.version.z = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset_people_count,
.data_len = 0
Expand Down

0 comments on commit 077413a

Please sign in to comment.