Android 平台开发 (#1)
* 修复 UUID 创建失败的问题 * 移除 scanning 属性 * 临时提交 * CentralManager 开发 & 示例项目开发 * CentralManager 开发 & 示例项目开发 * android 插件生命周期监听 * 修改 API * 示例程序开发 * 修改字体,添加 API,解决后台问题 * Central#connect API * 蓝牙连接部分开发 * 蓝牙连接部分开发 * 解决一些问题 * 解决一些问题 * Connect API 优化 * 添加 API * example 开发 * API 基本完成 * 消息重命名 * API 修改,Android 实现 * 删除多余代码 * 删除多余文件 * 解决 descriptor 自动生成报错的问题 * 还原 Kotlin 版本,广播处理代码迁移至 dart 端 * Kotlin 版本升至 1.5.20 * 解决特征值通知没有在主线程触发的问题,优化代码 * 引入哈希值,避免对象销毁后继续使用 * 使用下拉刷新代替搜索按钮 * 解决由于热重载和蓝牙关闭产生的问题 * 更新插件信息 * 更新 README 和 CHANGELOG * 更新许可证 * 添加注释 * 添加注释,central 拆分
This commit is contained in:
45
README.md
45
README.md
@ -1,15 +1,42 @@
|
||||
# bluetooth_low_energy
|
||||
# Bluetooth Low Energy
|
||||
|
||||
A new flutter plugin project.
|
||||
A bluetooth low energy plugin for flutter, which can be used to develope central role apps.
|
||||
|
||||
## Features
|
||||
|
||||
### Central APIs
|
||||
- [x] Discover advertisements.
|
||||
- [x] Connect/Disconnect to GATTs.
|
||||
- [x] Read/Write/Notify characteristics.
|
||||
- [x] Read/Write descriptors.
|
||||
|
||||
### Peripheral APIs
|
||||
- [ ] Add/Send advertisements.
|
||||
- [ ] Add services
|
||||
- [ ] Add/Listen/Write characteristics
|
||||
- [ ] Add/Listen/Write descriptors.
|
||||
- [ ] Listen GATT connect/disconnect events.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter
|
||||
[plug-in package](https://flutter.dev/developing-packages/),
|
||||
a specialized package that includes platform-specific implementation code for
|
||||
Android and/or iOS.
|
||||
Add `bluetooth_low_energy` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).
|
||||
|
||||
For help getting started with Flutter, view our
|
||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
```
|
||||
dependencies:
|
||||
bluetooth_low_energy: ^<latest-version>
|
||||
```
|
||||
|
||||
### Android
|
||||
|
||||
Make sure you have a `miniSdkVersion` with 21 or higher in your `android/app/build.gradle` file, now we only support Android 5.0 or above.
|
||||
|
||||
*Note*: Bluetooth Low Energy doesn't work on Android emulators, so use physical devices which has bluetooth features for development.
|
||||
|
||||
### iOS
|
||||
|
||||
TO BE DONE.
|
||||
|
||||
## Issues
|
||||
|
||||
- Only support Android for now, iOS will available as soon as possible.
|
||||
- Only support central APIs for now.
|
||||
|
Reference in New Issue
Block a user