【文件属性】:
文件名称:EasyBle:Android BLE 框架
文件大小:223KB
文件格式:ZIP
更新时间:2021-05-31 14:34:57
bluetooth ble bluetooth-low-energy bluetooth-le android-ble
EasyBle
EasyBle 是一个用于android BLE 的框架,该框架使android BLE 操作更简单,支持基本的BLE 操作,此外还支持批量写入数据和多连接
1.0.x版本不再维护,请使用或更新到最新版本(2.0.x)
Gradle依赖
allprojects {
repositories {
maven { url ' https://jitpack.io ' }
}
}
dependencies {
implementation ' com.github.Ficat:EasyBle:v2.0.1 '
}
用法
框架使用 BleManager 来管理 BLE
1.检查设备是否支持BLE并开启蓝牙
// check if the device supports BLE
BleManager . su
【文件预览】:
EasyBle-master
----.gitignore(118B)
----sample()
--------.gitignore(7B)
--------build.gradle(1009B)
--------src()
--------proguard-rules.pro(751B)
----settings.gradle(30B)
----build.gradle(590B)
----gradlew(5KB)
----LICENSE(11KB)
----README.md(9KB)
----gradlew.bat(2KB)
----gradle.properties(730B)
----README_CN.md(9KB)
----gradle()
--------wrapper()
----easyble()
--------.gitignore(7B)
--------build.gradle(548B)
--------src()
--------proguard-rules.pro(751B)