2019年1月15日 星期二

[Android] BLE Gatt error 133 (solved)

BLE disconnect. Gatt error 133

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {

            connectDevice.connectGatt(context, Consts.autoConnect, gatt_callback, BluetoothDevice.TRANSPORT_LE);
}else {

            connectDevice.connectGatt(context, Consts.autoConnect, gatt_callback);
}

沒有留言:

張貼留言