sample.rst 1.3 KB

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