Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何设置BluetoothLEAdvertisementWatcher来通知所有广告?_Bluetooth_Bluetooth Lowenergy_Ibeacon_Windows 10_Uwp - Fatal编程技术网

如何设置BluetoothLEAdvertisementWatcher来通知所有广告?

如何设置BluetoothLEAdvertisementWatcher来通知所有广告?,bluetooth,bluetooth-lowenergy,ibeacon,windows-10,uwp,Bluetooth,Bluetooth Lowenergy,Ibeacon,Windows 10,Uwp,我正在使用Win10示例(BluetoothAdvertision)来检测ibeacon广告,在根据需要修改和运行示例后,在范围内每个ibeacon只能看到一个广告 我必须捕捉范围内每个ibeacon的每个广告,有没有办法做到这一点?我正在查看BluetoothLEAdvertisementFilter,但没有提到每个设备只会触发一个事件 有什么想法吗?尝试停止扫描并重新启动以获得第二次检测。在某些芯片组/驱动程序实现中,每次扫描时,每个唯一的蓝牙mac地址只向链上传递一个检测。当设备发送可连接

我正在使用Win10示例(BluetoothAdvertision)来检测ibeacon广告,在根据需要修改和运行示例后,在范围内每个ibeacon只能看到一个广告

我必须捕捉范围内每个ibeacon的每个广告,有没有办法做到这一点?我正在查看BluetoothLEAdvertisementFilter,但没有提到每个设备只会触发一个事件


有什么想法吗?

尝试停止扫描并重新启动以获得第二次检测。在某些芯片组/驱动程序实现中,每次扫描时,每个唯一的蓝牙mac地址只向链上传递一个检测。当设备发送可连接的广告时尤其如此


一些Android Bluetooth LE实现也有同样的问题(例如Nexus 4和Moto g)。作为一种解决办法,它们大约每秒停止并重新启动扫描一次,以便在每个设备的每个扫描周期中获得一次回调。此代码到的端口计划采用相同的方法,这是一项正在进行的工作。

尝试设置扫描模式:

bleAdWatcher.ScanningMode=蓝牙扫描模式.Active

这似乎对我有用