【发布时间】:2020-04-09 09:05:10
【问题描述】:
我对 BLE API 和功能非常陌生。我想实现一个“简单”的事情。假设我正在开发 APP-X。我希望能够扫描我周围的其他手机,安装了 APP-X(就像这里的这个应用程序 https://www.tracetogether.gov.sg/ 一样)。我想通过相关手机发出的信号中的“简单”元数据(广告数据?特定于我的应用程序)来扫描和过滤想要的设备。我被卡住了,因为我知道如何“发出”(广播)该自定义信号。
您能帮我在 RN 中找到一种方法吗?
我已经检查了这些库:
-
https://github.com/Polidea/react-native-ble-plx :但他们注意到该库不支持
communicating between phones using BLE (Peripheral support) - https://github.com/innoveit/react-native-ble-manager : 那里没有看到任何广告 API
非常感谢
【问题讨论】:
标签: android ios react-native bluetooth-lowenergy