You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have set the connectionTimout under connectToDevice function to 30 seconds but it still acts as 5 seconds on an android 13 device, lower versions of android seems to be working.
I just found out that it is not an android 13 issue, I have two devices I am working with that have android 13,
on a Galaxy Tab A7 Lite the duration is 5 seconds,
on a Nothing phone (1) the duration is 30 seconds,
both running Android 13
Describe the bug
I have set the connectionTimout under connectToDevice function to 30 seconds but it still acts as 5 seconds on an android 13 device, lower versions of android seems to be working.
Future connect(String deviceId) async {$deviceId : $ {update.connectionState}');
await DefaultCacheManager().emptyCache();
_logMessage('Start connecting to $deviceId');
_connection = _ble
.connectToDevice(id: deviceId, connectionTimeout: Duration(seconds: 30))
.listen(
(update) {
_logMessage(
'ConnectionState for device
_deviceConnectionController.add(update);
},
onError: (Object e) =>
_logMessage('Connecting to device $deviceId resulted in error $e'),
);
}
All the permissions I have added to my project:
The text was updated successfully, but these errors were encountered: