4

在前台时,我设法成功连接并与外围设备配对。但是当我尝试从后台连接时,外围设备被连接,然后立即断开连接,并出现以下错误:

BTServer[67] <Error>: LE pairing failed to device "F90..." with result 1

BTServer[67] <Error>: ATT no characteristic values with UUID 0x2A00 could be read in range [0x0001, 0x0007] on device "F90..."

BTServer[67] <Error>: Aborting command as device "F90..." is no longer connected

这似乎很奇怪,因为外围设备已经配对,并且在前台应用程序时不会发生类似的情况。

这只发生在 iOS 8 上。在 iOS 7 上,相同的代码在后台和前台模式下都可以正常工作。

4

0 回答 0