David Lechner

Results 1570 comments of David Lechner

If the device in question has a service UUID in the advertising data, you ca use the `service_uuids` keyword arg to `BleakScanner()` to offload filtering. Filtering by address (and pretty...

> Unsure if this is relevant to this issue - Not relevant, so i moved it to a new issue.

* `time.sleep(...)` will break asyncio by blocking program execution. Use `await asyncio.sleep(...)` instead. * Using `BleakClient(device)` instead of `BleakClient(device.address)` will prevent having to scan a second time. > ```shell >...

https://github.com/hbldh/bleak/pull/1511 will probably change the error message seen here, but probably doesn't fix the issue completely (and will likely cause the suggested workaround to not work anymore). More logging here...

> ``` > > ``` > > > > > > I guess we need #1100 ? Yes.

> I have traced this down to the self._session.add_session_status_changed in the winrt/client.py file not being called on the second connect() call. So in other words, `self._session = await GattSession.from_device_id_async()` is...

Can you share your Python program?

> Does this have any influence? No, this is normal. > Does bleak switch between those channels to watch each of them? It is entirely up to the OS to...

Thanks for the report. I made a pull request to fix this if you want to test it.

Can you share the new stack trace after this change?