在连接之前加了disconnect()和close()方法,依然报,测试机型为小米4c手机,log日志如下:
D/TAG: ~ Stopping Scan
D/BluetoothAdapter: stopLeScan()
D/BluetoothGatt: cancelOpen() - device: BE:EF:BE:EF:EE:F5
D/BluetoothGatt: close()
D/BluetoothGatt: unregisterApp() - mClientIf=5
D/BluetoothGatt: connect() - device: BE:EF:BE:EF:EE:F5, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=683fa353-8577-4916-92a0-64656c0a0d8c
E/--Main--: Trying to create a new connection.
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=5
D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=5 device=BE:EF:BE:EF:EE:F5