aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 106605b..af12a45 100644
--- a/README.md
+++ b/README.md
@@ -12,10 +12,12 @@ pip install inverterd
## Usage example
```python
-from inverterd import Client
+from inverterd import Client, Format
c = Client(8305, '127.0.0.1')
-c.format('json')
+c.connect()
+
+c.format(Format.JSON)
print(c.exec('get-status'))
print(c.exec('get-year-generated', (2021,)))
```