作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
状态保留和恢复可以 scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesKey : true]
吗?
我的目标是从后台扫描、连接和写入外围设备。到目前为止,我知道后台扫描需要特定的服务 UUID。还有另一种方法可以在不定义服务 UUID 的情况下在后台进行扫描等吗?
我正在使用 iBeacon 和 swift 3
最佳答案
不幸的是,不,如果您不提供服务 UUID,CoreBluetooth 将不会提供回调,除非您的应用程序在前台。
关于ios - ScanForPeripheral 状态保留与恢复 iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44147547/
状态保留和恢复可以 scanForPeripherals(withServices: nil, options: [CBCentralManagerScanOptionAllowDuplicatesK
我正在尝试在扫描外围设备时控制 LE BT 信号强度。问题是当我附近有很多外围设备时,我只想检测离我最近的外围设备。我正在使用 scanForPeripheralsWithServices:optio
我是一名优秀的程序员,十分优秀!