kopia lustrzana https://github.com/micropython/micropython-lib
aioble: Fix docs for subscribe (needs await).
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>pull/433/head
rodzic
32684886ee
commit
3c383f6d28
|
@ -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()
|
||||
```
|
||||
|
|
Ładowanie…
Reference in New Issue