diff options
| author | JF <jf@codingfield.com> | 2020-05-17 10:29:13 +0200 |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-05-17 10:29:13 +0200 |
| commit | 8a94750e30399bfb204cbec59a769d9d1b6b5baa (patch) | |
| tree | 8a1a58beae54e238d28aff116c900f3b428b7db4 /src/libs/mynewt-nimble/docs/mesh/sample.rst | |
| parent | 86d5732b960fbe7f81ed711b2de7e6b79293c96a (diff) | |
| parent | be1ad9b07083e656a649d223750ff4b14b781b7b (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'src/libs/mynewt-nimble/docs/mesh/sample.rst')
| -rw-r--r-- | src/libs/mynewt-nimble/docs/mesh/sample.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/libs/mynewt-nimble/docs/mesh/sample.rst b/src/libs/mynewt-nimble/docs/mesh/sample.rst new file mode 100644 index 00000000..e63667b6 --- /dev/null +++ b/src/libs/mynewt-nimble/docs/mesh/sample.rst @@ -0,0 +1,30 @@ +Sample application +------------------ + +**blemesh** sample application implements Bluetooth Mesh node that supports On/Off and Level models. + +To build application use following target. Note that since this application uses Non-resolvable Private Address there is +no need for configuring public address. + +:: + + newt target create blemesh + newt target set blemesh app=@apache-mynewt-nimble/apps/blemesh + newt target set blemesh bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056 + newt target set blemesh build_profile=optimized + newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x20, 0}' + +Every device should have unique Device UUID so config amend and rebuild is needed for each of the devices that will be +added to a network. + +:: + + newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x21, 0}' + ... + newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x22, 0}' + ... + newt target set blemesh syscfg=BLE_MESH_PB_GATT=1:BLE_MESH_DEV_UUID='(uint8_t[16]){0x22, 0x23, 0}' + +GATT bearer is enabled so that it is possible to provision those with Bluetooth Mesh application from Silicon Labs +(available `here <https://play.google.com/store/apps/details?id=com.siliconlabs.bluetoothmesh>`__) which doesn't +support advertising bearer. |
