We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53ded96 + 7d9b1e5 commit 8108106Copy full SHA for 8108106
1 file changed
README.md
@@ -7,7 +7,7 @@ Async Python client for [NanoKVM](https://github.com/sipeed/NanoKVM).
7
```python
8
9
from aiohttp import ClientSession
10
-from nanokvm.models import ButtonType
+from nanokvm.models import GpioType
11
from nanokvm.client import NanoKVMClient
12
13
@@ -24,7 +24,7 @@ async with ClientSession() as session:
24
async for frame in client.mjpeg_stream():
25
print(frame)
26
27
- await client.push_button(ButtonType.POWER, duration_ms=1000)
+ await client.push_button(GpioType.POWER, duration_ms=1000)
28
```
29
30
## SSH Usage
@@ -41,4 +41,4 @@ uptime = await ssh.run_command("cat /proc/uptime")
41
disk = await ssh.run_command("df -h /")
42
43
await ssh.disconnect()
44
-```
+```
0 commit comments