aioble: Fix docs for subscribe (needs await).

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/433/head
Jim Mussared 2021-07-12 13:38:33 +10:00
rodzic 32684886ee
commit 3c383f6d28
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -118,7 +118,7 @@ temp_char = await temp_service.characteristic(_ENV_SENSE_TEMP_UUID)
data = await temp_char.read(timeout_ms=1000)
temp_char.subscribe(notify=True)
await temp_char.subscribe(notify=True)
while True:
data = await temp_char.notified()
```