RxBluetoothKitを使ってスキャンを行いたいです。
公式にはこのようなコードで取得できるとありました。
Swift
1manager.scanForPeripherals(withServices: serviceIds) 2 .subscribe(onNext: { scannedPeripheral in 3 let advertisementData = scannedPeripheral.advertisementData 4 })
しかし、下記のようなエラーが発生し、スキャンができていません。
error
1RxBluetooth[6229:697122] [CoreBluetooth] API MISUSE: <CBCentralManager: 0x280da5e40> 2has no restore identifier but the delegate implements the 3centralManager:willRestoreState: method. Restoring will not be supported
何か必要な手順などあるのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。