zephyr/samples/bluetooth/mesh
Torsten Rasmussen 407b49b35c cmake: use find_package to locate Zephyr
Using find_package to locate Zephyr.

Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate
code.

Whenever an automatic run of CMake happend by the build system / IDE
then it was required that ZEPHYR_BASE was defined.
Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to
cache the base variable and thus allowing subsequent invocation even
if ZEPHYR_BASE is not set in the environment.

It also removes the risk of strange build results if a user switchs
between different Zephyr based project folders and forgetting to reset
ZEPHYR_BASE before running ninja / make.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-03-27 16:23:46 +01:00
..
src samples: convert bluetooth mesh samples to new gpio API 2020-02-05 12:00:36 +01:00
CMakeLists.txt cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
microbit_gatt.conf Bluetooth: Mesh: Slab based segmentation handling 2020-03-19 15:54:26 +02:00
nrf51_qfaa.conf Bluetooth: Mesh: Slab based segmentation handling 2020-03-19 15:54:26 +02:00
prj_bbc_microbit.conf Bluetooth: Mesh: Slab based segmentation handling 2020-03-19 15:54:26 +02:00
prj.conf Bluetooth: Mesh: Clean up sample config 2019-12-09 17:13:41 +02:00
README.rst doc: Bluetooth: Documentation overhaul 2019-03-13 10:40:05 +01:00
rv32m1_vega_ri5cy.overlay samples: bluetooth: add missing VEGABoard overlays 2020-02-08 10:23:49 +02:00
sample.yaml samples: add test identifier 2019-03-29 17:44:11 -04:00

.. _ble_mesh:

Bluetooth: Mesh
###############

Overview
********

This sample demonstrates Bluetooth Mesh functionality. It has several
standard Mesh models, and supports provisioning over both the
Advertising and the GATT Provisioning Bearers (i.e. PB-ADV and PB-GATT).
The application also needs a functioning serial console, since that's
used for the Out-of-Band provisioning procedure.

Requirements
************

* A board with Bluetooth LE support, or
* QEMU with BlueZ running on the host

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/mesh` in the
Zephyr tree.

See :ref:`bluetooth samples section <bluetooth-samples>` for details on how
to run the sample inside QEMU.

For other boards, build and flash the application as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/bluetooth/mesh
   :board: <board>
   :goals: flash
   :compact:

Refer to your :ref:`board's documentation <boards>` for alternative
flash instructions if your board doesn't support the ``flash`` target.