Skip to content

Commit 3c383f6

Browse files
committed
aioble: Fix docs for subscribe (needs await).
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent 3268488 commit 3c383f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/bluetooth/aioble/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ temp_char = await temp_service.characteristic(_ENV_SENSE_TEMP_UUID)
118118

119119
data = await temp_char.read(timeout_ms=1000)
120120

121-
temp_char.subscribe(notify=True)
121+
await temp_char.subscribe(notify=True)
122122
while True:
123123
data = await temp_char.notified()
124124
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy