Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Timeout behaviour is different on Android and iOS. According to Apple documentation, connection attempt does not time out. Android has a special parameter for that. Current Qt Android implementation:
connectMethod.invoke(mRemoteGattDevice, qtContext, false, gattCallback, 2 /*TRANSPORT_LE*/); and mBluetoothGatt = mRemoteGattDevice.connectGatt(qtContext, false, gattCallback);
sets the flag explicitly to false. Proposing to either change it to 'true' or make it configurable in Qt API.