0
CentralManager不會在後臺掃描BLE裝置....IOS BLE scanForPeripheralsWithServices:選擇:在背景
我已經設置UIBackgroundModes
,bluetooth-central
在info.plist中。
還試圖輸入UUID爲服務這樣的..
[CentralManager scanForPeripheralsWithServices:@[[CBUUID UUIDWithString:@"0xFFA0"]] options:nil];
(0xFFA0爲服務的UUID。)
還試圖"C337FA9-4DCF-****-77AB-************";
UUID爲設備。 無論我把UUID放在服務中。在後臺找不到任何設備。
當前臺.. scanForPeripheralsWithServices:nil
找到所有設備。 但不是scanForPeripheralsWithServices:someuuids
任何人都可以幫助我嗎?
你是否嘗試用一些uuid掃描scanForPeripheralsWithServices?並且在這種情況下在前景中獲得一些結果嗎? – Leo 2014-11-05 09:06:07
不,我沒有得到任何設備,當它在前臺掃描一些uuid。 – Sean 2014-11-06 04:47:00