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
Hi. I'm building an application on windows using PyQt5 which needs to connect to multiple BLE devices
Right now i'm using a basic "for loop" to both connect and send commands to my devices. it's works as intented but it could be optimized by using threads to connect to all the devices asynchronously.
but when i try to connect to my devices using threads both with pure python and the QThread class), i get this timeout error starting at the second device.
pygatt.backends.bgapi.exceptions.ExpectedResponseTimeout: Timed out after 1.000000s waiting for [<ResponsePacketType.sm_set_bondable_mode: 51>]
i'm wondering if this is even possible to do. My understanding is that my instance of the BGAPIBLEDevice could be "busy" connecting to the first device, thus locking the instance until it's finished.
when i put more than 1 second of sleep between my threads start, i don't get this error. it's useless but it serves my point.
Maybe i'm doing something wrong. what is your knowledge on this subject?
The text was updated successfully, but these errors were encountered:
Hi. I'm building an application on windows using PyQt5 which needs to connect to multiple BLE devices
Right now i'm using a basic "for loop" to both connect and send commands to my devices. it's works as intented but it could be optimized by using threads to connect to all the devices asynchronously.
but when i try to connect to my devices using threads both with pure python and the QThread class), i get this timeout error starting at the second device.
pygatt.backends.bgapi.exceptions.ExpectedResponseTimeout: Timed out after 1.000000s waiting for [<ResponsePacketType.sm_set_bondable_mode: 51>]
i'm wondering if this is even possible to do. My understanding is that my instance of the BGAPIBLEDevice could be "busy" connecting to the first device, thus locking the instance until it's finished.
when i put more than 1 second of sleep between my threads start, i don't get this error. it's useless but it serves my point.
Maybe i'm doing something wrong. what is your knowledge on this subject?
The text was updated successfully, but these errors were encountered: