connectingToBLE = false; newSocket = mDeviceManager.connect(address); } else if (!mDeviceManager.isBLEConnected()) { connectingToBLE = true; bluetoothGatt = mDeviceManager.connectBLE(address);
connectingToBLE = false; newSocket = mDeviceManager.connect(address); } else if (!mDeviceManager.isBLEConnected()) { connectingToBLE = true; bluetoothGatt = mDeviceManager.connectBLE(address);