zephyr/samples
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
..
application_development/external_lib samples: external_lib: Build binaries in the build directory 2017-11-15 08:49:06 -05:00
basic sample: blink_led: Add support for stm32f4_disco 2017-11-14 07:04:00 -05:00
bluetooth Bluetooth: Mesh: Fix non-periodic Model Publication 2017-11-22 12:53:54 +02:00
boards samples: nrf52: power_mgr: Increase idleness for main thread 2017-11-18 11:21:13 -05:00
cpp_synchronization kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
drivers sample: crypto: also test mbedTLS config 2017-11-16 05:48:16 -05:00
grove samples: grove: Convert doc to CMake. 2017-11-12 21:13:23 -05:00
hello_world cmake: set IS_TEST in the hello_world sample 2017-11-16 08:26:25 -05:00
mpu cmake: set IS_TEST in the samples that were including Makefile.test 2017-11-16 08:26:25 -05:00
net samples: net: echo_client: Only send allowable number of bytes 2017-11-20 16:39:36 -05:00
nfc/nfc_hello kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
philosophers samples: misc: Convert doc to CMake 2017-11-12 21:13:23 -05:00
sensor samples: sensor: Convert doc to CMake 2017-11-12 21:13:23 -05:00
subsys samples: subsys: Convert doc to CMake 2017-11-12 21:13:23 -05:00
synchronization cmake: set IS_TEST in the samples that were including Makefile.test 2017-11-16 08:26:25 -05:00
testing kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
kernel.rst doc: spelling fixes in samples/ and boards/ 2017-06-12 18:28:08 -04:00
samples.rst samples: drivers: add LPD8806 sample application 2017-10-28 13:23:30 -04:00