Raspberry pi蓝牙未在基于React-Native的应用程序上检测到.(二手的反应本能的魔术师) [英] Raspberry pi bluetooth not detecting on React-Native based application. (Used react-native-ble-magaer)
问题描述
我正在尝试在 React-Native 应用程序上获取 Raspberry pi蓝牙信号或外围设备特征.我正在使用 react-native-ble-manager
扫描并检测外围设备.到目前为止,我得到了大多数设备,例如 TV , 智能频段 等,但没有收到树莓信号
I am trying to get the Raspberry pi Bluetooth signal or the peripheral device characteristic on my React-Native application. I am using react-native-ble-manager
to scan and detect the peripheral devices. So far I got most of the devices like TV, Smart-Bands etc. But not getting the raspberry signal.
我确实从设备(移动设备)蓝牙管理器确认了网络是否已启用并且对我的移动设备可见.一切似乎都很好.我正在为此应用程序使用 realme XT 手机.我也检查了不同的手机,甚至那些手机也有相同的问题.因此,我认为这是组件的问题,而不是移动设备的问题.
I did confirm if the network is enabled and visible to my mobile from the device(Mobile) Bluetooth Manager. Everything seems to be fine. I am using a realme XT handset for this application. I have also checked on different handsets and even those had the same problem. So, I think it's the problem of the component and not the mobile.
如果有不同的方法使用不同的软件包,那么即使该方法对我来说也很好.有人可以帮我吗!!
If there is a different approach with different package, even that approach is fine for me. Can someone help me on this!!.
谢谢!
推荐答案
就像评论中提到的那样,Raspberry Pi没有默认的 BLE 服务,或者我没有启用蓝牙服务的代码没有 BLE .
Like mentioned in the comments Raspberry Pi doesn't have a BLE service as default or maybe my code to enable the Bluetooth service doesn't have BLE.
为此,我的解决方案是使用其他软件包.我将 react-native-ble-manager
替换为 react-native-bluetooth-serial-next
和walaaa !!.
My solution for this was using a different package. I replaced react-native-ble-manager
to react-native-bluetooth-serial-next
and walaaa!!.
一切正常!
这篇关于Raspberry pi蓝牙未在基于React-Native的应用程序上检测到.(二手的反应本能的魔术师)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!