Re: BT Mesh Health Server FaultPeriodicPublication#bluetoothmesh #zephyrbluetoothmesh


Johan Hedberg
 

On 9 Apr 2019, at 19.15, Johan Hedberg <@jhe> wrote:
Actually, I think I missed the fact in the earlier emails that this was specifically about the health server and not just any model publishing. The health server is a special case and does support periodic publishing. It’ll set its own update callback in health_srv.c (health_pub_update function), i.e. that would override anything your application sets if you were to try it. So the main thing you were probably missing with your earlier code was the message buffer for the publication message.
For the record, I found a minor bug with the bt_mesh_fault_update() API in that it wasn’t properly updating the publication message before sending it. I’ve submitted a PR (one-line patch) to fix this:

https://github.com/zephyrproject-rtos/zephyr/pull/15301

Johan

Join users@lists.zephyrproject.org to automatically receive all group messages.