Skip to content

aioble/examples/temp_client.py: check connection before reading temp #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rknegjens
Copy link
Contributor

@rknegjens rknegjens commented Apr 5, 2022

Only read from the temp characteristic if the connection is still
active. Improves the example by avoiding a TypeError exception when the
sensor disconnects.

@rknegjens rknegjens force-pushed the aioble-sensor-example-improve branch from dbee63f to d7aee80 Compare April 13, 2022 18:39
Only read from the temp characteristic if the connection is still active.
Improves the example by avoiding a TypeError exception if/when the sensor
disconnects.
@dpgeorge dpgeorge force-pushed the aioble-sensor-example-improve branch from d7aee80 to f0b6832 Compare May 24, 2024 08:50
@dpgeorge
Copy link
Member

Sorry this took 2 years to get to!

Now merged.

@dpgeorge dpgeorge merged commit f0b6832 into micropython:master May 24, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants