gpt4 book ai didi

ios - Bluetooth LE iOS - 如何使用 scanForPeripherals WithServices :options: 仅查找最近的设备

转载 作者:行者123 更新时间:2023-11-29 11:02:53 25 4
gpt4 key购买 nike

我正在尝试在扫描外围设备时控制 LE BT 信号强度。问题是当我附近有很多外围设备时,我只想检测离我最近的外围设备。我正在使用

scanForPeripheralsWithServices:options: 

我可以降低设备的 BT 功率以便扫描只显示最近的设备吗?我正在尝试使用 RSSI 参数过滤较远的外围设备,但它不一致。

最佳答案

我认为这是不可能的。唯一的限制是搜索具有特定服务的外围设备。您可以只连接最近的外围设备。

关于ios - Bluetooth LE iOS - 如何使用 scanForPeripherals WithServices :options: 仅查找最近的设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15050945/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com