android bluetoothGatt :onClientRegistered() - status=133 clientIf=0
参考资料:
http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback
http://stackoverflow.com/questions/28894111/android-ble-gatt-error133-on-connecting-to-device
问题:
BLE连接时(使用 .connectGatt),不是提示成功或失败,而是提示:
BluetoothGatt(32027): onClientRegistered() - status=133 clientIf=0
经查:
133 = 0x85,是GATT_ERROR

错误含义
原因:
之前断开连接时,仅仅是调用了.disconnect(), 而没有调用.close().
BluetoothGatt一次最多只能处理6个连接(android4.4)。所以重复连接6次之后,就再也无法连接了。
解决办法:
每次重连前,BluetoothGat先调用.close(),这样可以释放所有的连接。

