the mesh android,Android-nRF-Mesh-Library: Preview version of the Bluetooth Mesh Provisioner and Con...

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

Supports provisioning with OOB Numeric

Adding App Key

Binding added app keys to Models

Setting publish address

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:

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.

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.

License

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值