xref: /nrf52832-nimble/packages/NimBLE-latest/docs/mesh/sample.rst (revision 042d53a763ad75cb1465103098bb88c245d95138)
1Sample application
2------------------
3
4**blemesh** sample application implements Bluetooth Mesh node that supports On/Off and Level models.
5
6To build application use following target. Note that since this application uses Non-resolvable Private Address there is
7no need for configuring public address.
8
9::
10
11    newt target create blemesh
12    newt target set blemesh app=@apache-mynewt-core/apps/blemesh
13    newt target set blemesh bsp=@apache-mynewt-core/hw/bsp/nrf52840pdk
14    newt target set blemesh build_profile=optimized
15    newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x20, 0}'
16
17Every device should have unique Device UUID so config amend and rebuild is needed for each of the devices that will be
18added to a network.
19
20::
21
22    newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x21, 0}'
23    ...
24    newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x22, 0}'
25    ...
26    newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x23, 0}'
27
28GATT bearer is enabled so that it is possible to provision those with Bluetooth Mesh application from Silicon Labs
29(available `here <https://play.google.com/store/apps/details?id=com.siliconlabs.bluetoothmesh>`__) which doesn't
30support advertising bearer.
31