1、蓝牙后台模式
在info.plist文件中添加UIBackgroundModes的key,Value 则是包含以下提到的两种字符串的数组:
- bluetooth-central :APP 使用 CoreBluetooth 框架与其他 BLE 设备进行通信
-
bluetooth-peripheral :APP 使用 CoreBluetooth 框架来分享数据
图片.png
在info.plist文件中添加UIBackgroundModes的key,Value 则是包含以下提到的两种字符串的数组:
bluetooth-peripheral :APP 使用 CoreBluetooth 框架来分享数据
本文标题:iOS 蓝牙 BLE
本文链接:https://www.haomeiwen.com/subject/kcmelftx.html
网友评论