Bluetooth: Mesh: Correct pack of net idx hb_status
Ensures correct packing of net idx in Heartbeat Publication Status messages on the Configuration Server. Reference to net idx packing format: MshPRTv1.1 section 4.3.1.1 Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
parent
05774c5d76
commit
d4037ce6a1
1 changed files with 1 additions and 1 deletions
|
@ -2274,7 +2274,7 @@ static int hb_pub_send_status(struct bt_mesh_model *model,
|
|||
net_buf_simple_add_u8(&msg, bt_mesh_hb_log(pub->period));
|
||||
net_buf_simple_add_u8(&msg, pub->ttl);
|
||||
net_buf_simple_add_le16(&msg, pub->feat);
|
||||
net_buf_simple_add_le16(&msg, pub->net_idx);
|
||||
net_buf_simple_add_le16(&msg, pub->net_idx & 0xfff);
|
||||
}
|
||||
|
||||
if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue