How to get notified of a Device Disconnect in aioble? #13580
Unanswered
brianreinhold
asked this question in
Libraries & Drivers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the source code I see the task for a device disconnect cleanup but I do not see how to be notified that a peripheral device disconnects at the application level. I tried the obvious catching of the
aioble.DeviceDisconnectedError
but I did not see where that exception was raised (except in weird situations where aioble tries to do something but the device happens to be disconnected).So the question I have is how can the application get notified of a disconnect after invoking
await device.connect()
?Beta Was this translation helpful? Give feedback.
All reactions