-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit f0b6832
aioble/examples/temp_client.py: Check connection before reading temp.
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.1 parent da46c4b commit f0b6832
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | - | ||
58 | + | ||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments