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