zephyr/samples/bluetooth
Johan Hedberg 8f1541184f Bluetooth: Mesh: Fix non-periodic Model Publication
The only generally available model supporting publication that's
convenient to be used for testing is the Health Server Model.
Unfortunately since this model supports period publication, the
non-periodic side got less attention and had some bugs.

The first thing that needs to be done is to verify that the period
returned by bt_mesh_model_pub_period_get() is positive. If it's zero
then no periodic publication should take place.

Another thing that this patch cleans up is the naming of the callback
used for periodic publishing. There's no need do require the callback
to call bt_mesh_model_publish() since this must happen no matter what,
so instead rename the callback from 'func' to 'update' and have the
access layer call bt_mesh_model_publish() if the callback was
successful.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2017-11-22 12:53:54 +02:00
..
beacon kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
central cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
central_hr cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
eddystone cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
gatt Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
handsfree cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
hci_spi cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
hci_uart kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
hci_usb kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
ipsp cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
mesh Bluetooth: Mesh: Fix model publication 2017-11-20 15:00:29 +02:00
mesh_demo Bluetooth: Mesh: Fix non-periodic Model Publication 2017-11-22 12:53:54 +02:00
peripheral cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_csc cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_dis cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_esp cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_hids cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_hr cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
peripheral_sc_only cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
scan_adv cmake: Use -serial bt-server when CONFIG_BT 2017-11-08 20:00:22 -05:00
bluetooth.rst Bluetooth: samples: Remove references to Kbuild-style building 2017-11-09 10:57:49 -05:00