Android-nRF-Mesh-Library-master

所属分类:通讯编程
开发工具:WINDOWS
文件大小:2168KB
下载次数:2
上传日期:2019-04-11 23:39:00
上 传 者tractoan
说明:  nrf52 code for bluetooth

文件列表:
Example (0, 2018-09-27)
Example\nrf-mesh (0, 2018-09-27)
Example\nrf-mesh\app (0, 2018-09-27)
Example\nrf-mesh\app\build.gradle (3859, 2018-09-27)
Example\nrf-mesh\app\proguard-rules.pro (751, 2018-09-27)
Example\nrf-mesh\app\src (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java\no (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java\no\nordicsemi (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java\no\nordicsemi\android (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java\no\nordicsemi\android\nrfmeshprovisioner (0, 2018-09-27)
Example\nrf-mesh\app\src\androidTest\java\no\nordicsemi\android\nrfmeshprovisioner\ExampleInstrumentedTest.java (2332, 2018-09-27)
Example\nrf-mesh\app\src\main (0, 2018-09-27)
Example\nrf-mesh\app\src\main\AndroidManifest.xml (4991, 2018-09-27)
Example\nrf-mesh\app\src\main\ic_launcher-web.png (50995, 2018-09-27)
Example\nrf-mesh\app\src\main\java (0, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no (0, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi (0, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android (0, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner (0, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\BaseModelConfigurationActivity.java (22710, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\BindAppKeysActivity.java (5188, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\GenericLevelServerActivity.java (8875, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\GenericOnOffServerActivity.java (8826, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\MainActivity.java (9089, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\ManageAppKeysActivity.java (9689, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\ManageNodeAppKeysActivity.java (5562, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\MeshProvisionerActivity.java (20651, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\ModelConfigurationActivity.java (460, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\NetworkFragment.java (6861, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\NodeConfigurationActivity.java (16200, 2018-09-27)
Example\nrf-mesh\app\src\main\java\no\nordicsemi\android\nrfmeshprovisioner\NodeDetailsActivity.java (9390, 2018-09-27)
... ...

# Android-nRF-Mesh ## About 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. ### Features 1. Supports provisioning with OOB Numeric 2. Adding App Key 3. Binding added app keys to Models 4. Setting publish address 5. Subscribing/Unsubscribing to and from group addresses ## Requirements * Android Studio * An Android device with BLE capabilities ## Optional * nrf52832 based Development Kit(s) to test the sample firmwares on. ## Installation * 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 a `nrf52832` DevKit. ## How to include it in your own project #### Manual Clone this project and add *ble* module as a dependency to your project: 1. In *settings.gradle* file add the following lines: ```groovy include ':meshprovision' project(':meshprovision').projectDir = file('../Android-Mesh-Library/meshprovision') ``` 2. In *app/build.gradle* file add `implementation project(':meshprovision')` inside dependencies. 3. Sync project and build it. See example projects in this repository. #### Sample To start using the library in your own project take a look at the followign snippet. ```java MeshManagerApi mMeshManagerApi = new MeshManagerApi(this); mMeshManagerApi.setProvisionerManagerTransportCallbacks(this); mMeshManagerApi.setProvisioningStatusCallbacks(this); mMeshManagerApi.setConfigurationCallbacks(this); ``` The sample application uses the [Android BLE Library](https://github.com/NordicSemiconductor/Android-BLE-Library/) by Nordic Semiconductor ASA and is recommended to use this dependency in your application. ## Author Mobile Applications Team, Nordic Semiconductor ASA. Contact: roshanrajaratnam ## License The Android-nRF-Mesh-Library is available under BSD 3-Clause license. See the LICENSE file for more info.

近期下载者

相关文件


收藏者