feat: 重构项目 2.0.0 (#6)
* feat: 重构项目 * feat: 添加 bluez_central_manager * feat: 联合插件 * feat: 拆分项目 * feat: 实现 linux 部分接口 * feat: 重新创建项目 * feat: 定义接口 * feat: 实现接入插件 * feat: 清空接入插件示例代码 * feat: 开发 linux 插件 * feat: 调整接口 * 临时提交 * feat: 实现 Android 接口 * fix: 修复 Android 问题 * fix: 移除多余文件 * feat: 重构项目 (#5) * fix: 移除多余的状态判断 * fix: 外围设备断开时检查是否存在未完成的操作 * feat: 尝试使用 win32 实现接口 * fix: 修复大小写问题 * feat: 实现 macOS 接口 * feat: 实现 macOS 接口 * fix:支持使用16位短字符串生成UUID * fix: 修复未清理已完成操作的问题 * fix: 规范命名 * 添加蓝牙使用描述 * fix: 更新 README.md
This commit is contained in:
42
README.md
42
README.md
@ -1,43 +1,5 @@
|
||||
# bluetooth_low_energy
|
||||
|
||||
A bluetooth low energy plugin for flutter, which can be used to develope central role apps.
|
||||
This repo contains the source code for the [`bluetooth_low_energy`][1] federated plugins.
|
||||
|
||||
## Features
|
||||
|
||||
### Central APIs
|
||||
- [x] Scan advertisements.
|
||||
- [x] Connect/Disconnect to peripherals.
|
||||
- [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
|
||||
|
||||
Add `bluetooth_low_energy` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).
|
||||
|
||||
```
|
||||
dependencies:
|
||||
bluetooth_low_energy: ^<latest-version>
|
||||
```
|
||||
|
||||
*Note*: Bluetooth Low Energy doesn't work on Android emulators, so use physical devices which has bluetooth features for development.
|
||||
|
||||
### Android
|
||||
|
||||
Make sure you have a `miniSdkVersion` with 21 or higher in your `android/app/build.gradle` file.
|
||||
|
||||
### iOS
|
||||
|
||||
Make sure you have a minimum deployment target of 9.0 or above, you can uncomment the first line `platform :ios, '9.0'` in your iOS project's `Podfile`.
|
||||
|
||||
*Note*: According to Apple's [documents](https://developer.apple.com/documentation/corebluetooth/), you must include the [`NSBluetoothAlwaysUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription) on or after iOS 13, and include the [`NSBluetoothPeripheralUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothperipheralusagedescription) key before iOS 13.
|
||||
|
||||
## Issues
|
||||
|
||||
- Peripheral APIs are not implemented yet.
|
||||
[1]: https://pub.dev/packages/bluetooth_low_energy
|
Reference in New Issue
Block a user