Skip to content

Commit 8108106

Browse files
authored
Merge branch 'dev' into ssh
2 parents 53ded96 + 7d9b1e5 commit 8108106

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Async Python client for [NanoKVM](https://github.com/sipeed/NanoKVM).
77
```python
88

99
from aiohttp import ClientSession
10-
from nanokvm.models import ButtonType
10+
from nanokvm.models import GpioType
1111
from nanokvm.client import NanoKVMClient
1212

1313

@@ -24,7 +24,7 @@ async with ClientSession() as session:
2424
async for frame in client.mjpeg_stream():
2525
print(frame)
2626

27-
await client.push_button(ButtonType.POWER, duration_ms=1000)
27+
await client.push_button(GpioType.POWER, duration_ms=1000)
2828
```
2929

3030
## SSH Usage
@@ -41,4 +41,4 @@ uptime = await ssh.run_command("cat /proc/uptime")
4141
disk = await ssh.run_command("df -h /")
4242

4343
await ssh.disconnect()
44-
```
44+
```

0 commit comments

Comments
 (0)