我正在尝试通过蓝牙查找其他 iphone,其中 iphone 应用程序是用 Objective-C 编写的。我受到这个插件的启发:github.com/don/cordova-plugin-ble-central
通过更改与扫描相关的部分:https ://github.com/don/cordova-plugin-ble-central/blob/master/src/ios/BLECentralPlugin.m#L235
根据文档:https ://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBCentralManager_Class/index.html#//apple_ref/occ/instm/CBCentralManager/scanForPeripheralsWithServices:options :
您不能设置任何参数来检索附近所有打开蓝牙的设备,但这不起作用。
有谁知道如何解决?