1 Star 0 Fork 0

bestyize/Android-nRF-Mesh-Library

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

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:
include ':meshprovision'
project(':meshprovision').projectDir = file('../Android-Mesh-Library/meshprovision')
  1. In app/build.gradle file add implementation project(':meshprovision') inside dependencies.
  2. 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.

        MeshManagerApi mMeshManagerApi = new MeshManagerApi(context);
        mMeshManagerApi.setMeshManagerCallbacks(this);
        mMeshManagerApi.setProvisioningStatusCallbacks(this);
        mMeshManagerApi.setMeshStatusCallbacks(this);
        mMeshManagerApi.loadMeshNetwork();

The sample application uses the 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 roshan.rajaratnam@nordicsemi.no

License

The Android-nRF-Mesh-Library is available under BSD 3-Clause license. See the LICENSE file for more info.

Copyright (c) 2018, Nordic Semiconductor ASA All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

Preview version of the Bluetooth Mesh Provisioner and Configurator library https://www.nordicsemi.com/ 展开 收起
README
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/bestyize/Android-nRF-Mesh-Library.git
git@gitee.com:bestyize/Android-nRF-Mesh-Library.git
bestyize
Android-nRF-Mesh-Library
Android-nRF-Mesh-Library
master

搜索帮助