我們的應用程序通過CoreBluetooth連接到藍牙LE設備。iOS10上的CoreBluetooth:CBPeripheral discoverServices後超時
在iOS 8和9上,一切正常。在iOS上10我們geht超時錯誤(Error Domain=CBErrorDomain Code=6 "The connection has timed out unexpectedly."
)
在CBCentralManagerDelegate:
- (void)centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPeripheral *)peripheral error:(nullable NSError *)error;
調用一個連接CBPeripheral
discoverServices
後。
有誰知道最新出錯了嗎?這是iOS 10的問題嗎?是否有某個BLE日誌需要檢查?
的iPad Pro的9.7安裝iOS版10.0.1(14A403)與Nordic半導體nRF51822
謝謝你救了我..值得一提的是,如果你把NSUUID從不發送錯誤信息,這使得它很難調試 –