Skip to content

Commit 077413a

Browse files
m-alperen-senerrlubos
authored andcommitted
samples: bluetooth: mesh: Update NLC profile versions to 1.0.1
Updating composition data page 2 records with supported latest NLC profile version. Signed-off-by: alperen sener <[email protected]>
1 parent 40445aa commit 077413a

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

samples/bluetooth/mesh/light_ctrl/src/model_handler.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ static const uint8_t cmp2_elem_offset1[2] = { 0, 1 };
2626
static const uint8_t cmp2_elem_offset2[1] = { 0 };
2727

2828
static const struct bt_mesh_comp2_record comp_rec[2] = {
29-
{
29+
{/* Basic Lightness Controller NLC Profile 1.0.1 */
3030
.id = BT_MESH_NLC_PROFILE_ID_BASIC_LIGHTNESS_CONTROLLER,
3131
.version.x = 1,
3232
.version.y = 0,
33-
.version.z = 0,
33+
.version.z = 1,
3434
.elem_offset_cnt = 2,
3535
.elem_offset = cmp2_elem_offset1,
3636
.data_len = 0
3737
},
38-
{
39-
.id = BT_MESH_NLC_PROFILE_ID_ENERGY_MONITOR, /* Energy Monitor NLC Profile 1.0 */
38+
{ /* Energy Monitor NLC Profile 1.0.1 */
39+
.id = BT_MESH_NLC_PROFILE_ID_ENERGY_MONITOR,
4040
.version.x = 1,
4141
.version.y = 0,
42-
.version.z = 0,
42+
.version.z = 1,
4343
.elem_offset_cnt = 1,
4444
.elem_offset = cmp2_elem_offset2,
4545
.data_len = 0

samples/bluetooth/mesh/light_dimmer/src/model_handler.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ struct scene_btn_ctx {
5555
static const uint8_t cmp2_elem_offset[1] = { 0 };
5656

5757
static const struct bt_mesh_comp2_record comp_rec[2] = {
58-
{
58+
{/* Basic Scene Selector NLC Profile 1.0.1*/
5959
.id = BT_MESH_NLC_PROFILE_ID_BASIC_SCENE_SELECTOR,
6060
.version.x = 1,
6161
.version.y = 0,
62-
.version.z = 0,
62+
.version.z = 1,
6363
.elem_offset_cnt = 1,
6464
.elem_offset = cmp2_elem_offset,
6565
.data_len = 0
6666
},
67-
{
67+
{/* Dimming Control NLC Profile 1.0.1 */
6868
.id = BT_MESH_NLC_PROFILE_ID_DIMMING_CONTROL,
6969
.version.x = 1,
7070
.version.y = 0,
71-
.version.z = 0,
71+
.version.z = 1,
7272
.elem_offset_cnt = 1,
7373
.elem_offset = cmp2_elem_offset,
7474
.data_len = 0

samples/bluetooth/mesh/sensor_server/src/model_handler.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,38 +96,38 @@ static const uint8_t cmp2_elem_offset_motion[1] = { 2 };
9696
static const uint8_t cmp2_elem_offset_people_count[1] = { 3 };
9797

9898
static const struct bt_mesh_comp2_record comp_rec[4] = {
99-
{
99+
{/* Ambient Light Sensor NLC Profile 1.0.1 */
100100
.id = BT_MESH_NLC_PROFILE_ID_AMBIENT_LIGHT_SENSOR,
101101
.version.x = 1,
102102
.version.y = 0,
103-
.version.z = 0,
103+
.version.z = 1,
104104
.elem_offset_cnt = 1,
105105
.elem_offset = cmp2_elem_offset_ambient_light,
106106
.data_len = 0
107107
},
108-
{
108+
{/* Occupancy Sensor NLC Profile 1.0.1 */
109109
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
110110
.version.x = 1,
111111
.version.y = 0,
112-
.version.z = 0,
112+
.version.z = 1,
113113
.elem_offset_cnt = 1,
114114
.elem_offset = cmp2_elem_offset_presence,
115115
.data_len = 0
116116
},
117-
{
117+
{/* Occupancy Sensor NLC Profile 1.0.1 */
118118
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
119119
.version.x = 1,
120120
.version.y = 0,
121-
.version.z = 0,
121+
.version.z = 1,
122122
.elem_offset_cnt = 1,
123123
.elem_offset = cmp2_elem_offset_motion,
124124
.data_len = 0
125125
},
126-
{
126+
{/* Occupancy Sensor NLC Profile 1.0.1 */
127127
.id = BT_MESH_NLC_PROFILE_ID_OCCUPANCY_SENSOR,
128128
.version.x = 1,
129129
.version.y = 0,
130-
.version.z = 0,
130+
.version.z = 1,
131131
.elem_offset_cnt = 1,
132132
.elem_offset = cmp2_elem_offset_people_count,
133133
.data_len = 0

0 commit comments

Comments
 (0)