Skip to content

Commit 3c383f6

Browse files
committed
aioble: Fix docs for subscribe (needs await).
Signed-off-by: Jim Mussared <[email protected]>
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)