Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

React Native 中使用 BLE 的示例项目,用来扫描并连接可用的外设,然后读取和写入数据。

License

Notifications You must be signed in to change notification settings

HY88883/Bluetooth_central

Repository files navigation

Bluetooth_central

React Native 中使用 BLE 的示例项目,用来扫描并连接可用的外设,然后读取和写入数据。 现版本只在安卓上通过测试,功能正常。ios端需要过一段时间。

如何使用

在 Android 设备上运行 Bluetooth_central:

$ cd BluetoothProject
$ yarn install or npm install
$ react-native run-android

技术

蓝牙模块通信基于 react-native-ble-manager 实现。 app采用react-native+react-native-navigation+typescript+hook状态管理技术栈。

app部分截图: 5f7e098185066082a4b02ed00a9f81a 8374f15cc7ee4266a43353ab065149e 7451279674ce2f0c1b698e9ae7882c5 b3d2139e69efb83f9bef2a851acf925

支持的功能:

  • 扫描设备
  • 连接设备
  • 读取和写入特征
  • 等等。

有疑问或bug欢迎在issue中提出,我将尽快处理。

About

React Native 中使用 BLE 的示例项目,用来扫描并连接可用的外设,然后读取和写入数据。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /