Skip to content

Commit e4921cc

Browse files
PavelVPVcarlescufi
authored andcommitted
Bluetooth: Mesh: Trigger GATT update when subnet is added
When the node is part of only one subnet, it starts Network ID advertisements with infinite timeout. It is not an issue when using legacy advertising and extended advertising with shared set for local messages and GATT because any message will stop advertisements. However, when a separate adv set is used for GATT advertisements, `struct bt_le_ext_adv_cb.start` callback won't be called, but the implementation relies on that callback to switch to a next subnet. Calling `bt_mesh_adv_gatt_update()` stop GATT advertisement so that the implementation can switch to the next subnet. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 20a3a83 commit e4921cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/mesh/proxy_srv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt)
632632
}
633633
} else {
634634
bt_mesh_proxy_beacon_send(sub);
635+
bt_mesh_adv_gatt_update();
635636
}
636637
}
637638

0 commit comments

Comments
 (0)