简体   繁体   English

使用 React-Native 进行蓝牙测试

[英]Bluetooth tests with React-Native

Im trying to use bluetooth (to connect a vibration sensor to the app) on a react-native application.我试图在本机应用程序上使用蓝牙(将振动传感器连接到应用程序)。 I tried using react-native-ble-plx but I have a problem: when I emulate an Android Device with AVD Manager from Android Studio, how is bluetooth suppose to work?我尝试使用react-native-ble-plx但我遇到了一个问题:当我使用 Android Studio 的 AVD 管理器模拟 Android 设备时,蓝牙应该如何工作? Does my PC bluetooth transmit informations to the emulated device?我的 PC 蓝牙是否会将信息传输到仿真设备?

Android Devise Emulator from Android Studio not support Bluetooth. Android Studio 的 Android Devise Emulator 不支持蓝牙。 You can use only real Android device.您只能使用真正的 Android 设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM