An early alpha version of the Bluetooth Mesh specification, this library will allow you to provision and configure bluetooth Mesh compliant nodes.
This is a preview version that has missing features and capabilities that are going to be added in the near future.
nRF Mesh for Android is supported on Android devices running Android 4.3 and onwards.
- Supports provisioning with OOB Numeric
- Adding App Key
- Binding added app keys to Models
- Setting publish address
- Subscribing/Unsubscribing to and from group addresses
- Android Studio
- An Android device with BLE capabilities
- nrf52832 based Development Kit(s) to test the sample firmwares on.
- Open 'Example/nRf Mesh Provisioner'
- Connect an Android device.
- Build and run project.
- To be able to quickly start testing, use the bundled firmwares directory named
ExampleFirmwares
that includes a light server (Light source) and a light client (Switch) firmwares. those firmwares will work on anrf52832
DevKit.
Clone this project and add ble module as a dependency to your project:
- In settings.gradle file add the following lines:
include ':meshprovision'
project(':meshprovision').projectDir = file('../Android-Mesh-Library/meshprovision')
- In app/build.gradle file add
implementation project(':meshprovision')
inside dependencies. - Sync project and build it.
See example projects in this repository.
To start using the library in your own project take a look at the followign snippet.
MeshManagerApi mMeshManagerApi = new MeshManagerApi(this);
mMeshManagerApi.setProvisionerManagerTransportCallbacks(this);
mMeshManagerApi.setProvisioningStatusCallbacks(this);
mMeshManagerApi.setConfigurationCallbacks(this);
The sample application uses the Android BLE Library by Nordic Semiconductor ASA and is recommended to use this dependency in your application.
Mobile Applications Team, Nordic Semiconductor ASA.
Contact: roshanrajaratnam roshan.rajaratnam.@nordicsemi.no
The Android-nRF-Mesh-Library is available under BSD 3-Clause license. See the LICENSE file for more info.