标签: ios swift bluetooth core-bluetooth cbperipheralmanager
如何在Swift中广播蓝牙信号?我的目标是用另一台设备发现这个设备。我尝试使用CBPeripheralManager.startAdvertising函数,但CBPeripheralManager.isAdvertising始终返回false。
CBPeripheralManager.startAdvertising
CBPeripheralManager.isAdvertising
此外,后台广播如何运作?它与前景广播有什么不同吗?核心蓝牙编程指南说您应该为您的经理分配一个restoration identifier,但我不知道该怎么做。
restoration identifier
谢谢!