Bluetooth: Mesh: Add model publish support to Health Client

Mesh Profile Specification errata 11310
Section 4.4.4.1
"This model shall support model publication, as defined in Section
4.2.2 of the Mesh Profile specification and model subscription,
as defined in section 4.2.3 of the Mesh Profile specification."

Signed-off-by: Michal Narajowski <michal.narajowski@codecoup.pl>
This commit is contained in:
Michal Narajowski 2022-05-25 10:34:03 +02:00 committed by Fabio Baltieri
commit fab8e29ee2
9 changed files with 659 additions and 367 deletions

View file

@ -385,6 +385,11 @@ static int health_pub_update(struct bt_mesh_model *mod)
}
int bt_mesh_fault_update(struct bt_mesh_elem *elem)
{
return bt_mesh_health_srv_fault_update(elem);
}
int bt_mesh_health_srv_fault_update(struct bt_mesh_elem *elem)
{
struct bt_mesh_model *mod;