MiEcosystem / ios-rn-sdk

Works with mijia
https://iot.mi.com
116 stars 41 forks source link

蓝牙连接获取监听 centralManager_didDisconnectPeripheral_error 收到ios原生错误 #159

Open codebeautiful opened 5 years ago

codebeautiful commented 5 years ago

Bug Report

实际现象

_didDisconnectPeripheralListener error: { "code" : "ECBERRORDOMAIN7", "message" : "The specified device has disconnected from us.", "nativeStackIOS" : [ "0 MiHome 0x00000001086ec1e4 _ZN5folly6detail15str_to_integralIxEENS_8ExpectedIT_NS_14ConversionCodeEEEPNS_5RangeIPKcEE + 9451740", "1 MiHome 0x00000001086ec150 _ZN5folly6detail15str_to_integralIxEENS_8ExpectedIT_NS_14ConversionCodeEEEPNS_5RangeIPKcEE + 9451592", "2 MiHome 0x0000000104a3e70c MiHome + 5842700", "3 MiHome 0x00000001070c9744 cxa_throw + 25141100", "4 MiHome 0x00000001070d5560 __cxa_throw + 25189768", "5 CoreFoundation 0x000000020d0fc484 + 160", "6 MiHome 0x00000001070d54ac cxa_throw + 25189588", "7 MiHome 0x00000001070c96a4 __cxa_throw + 25140940", "8 CoreBluetooth 0x0000000212dbff60 + 232", "9 CoreBluetooth 0x0000000212dc0d8c + 636", "10 CoreBluetooth 0x0000000212dcf750 + 60", "11 libdispatch.dylib 0x000000020cc4d6c8 + 24", "12 libdispatch.dylib 0x000000020cc4e484 + 16", "13 libdispatch.dylib 0x000000020cc28fa0 + 548", "14 libdispatch.dylib 0x000000020cc29b1c + 468", "15 libdispatch.dylib 0x000000020cc2da28 + 744", "16 CoreFoundation 0x000000020d1a4df4 + 12", "17 CoreFoundation 0x000000020d19fcbc + 1964", "18 CoreFoundation 0x000000020d19f1f0 CFRunLoopRunSpecific + 436", "19 GraphicsServices 0x000000020f418584 GSEventRunModal + 100", "20 UIKitCore 0x000000023a4f6d40 UIApplicationMain + 212", "21 MiHome 0x0000000104aa3260 MiHome + 6255200", "22 libdyld.dylib 0x000000020cc5ebb4 + 4" ], "domain" : "CBErrorDomain" } {"state":"disconnected","services":{},"identifier":"D4CF5371-CBE2-A51C-33F3-30842495CE3A","name":"XXXXXXX"}

在连接蓝牙时,没有连接上时,会报出改错误

环境

复现步骤

  1. 连接蓝牙,退出插件断开蓝牙
  2. 重复操作直到连接不上
  3. 就会报出改错误

其他的上下文/日志/截图

blockdate commented 5 years ago

处理中