summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index cf536c4..e84d646 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ services:
24 - ./logs:/logs 24 - ./logs:/logs
25 network_mode: host 25 network_mode: host
26``` 26```
27# Usage
27## Register Device 28## Register Device
28A device is registered with a PUT request to the server with a JSON representation of the device as payload. 29A device is registered with a PUT request to the server with a JSON representation of the device as payload.
29| field | description | example | 30| field | description | example |
@@ -59,3 +60,8 @@ curl -X PUT http://<server-ip>/device \
59 "ip": "<device-ip>" 60 "ip": "<device-ip>"
60 }' 61 }'
61``` 62```
63## Start Device
64The easiest way to start a device is using a GET request with its id:
65```sh
66curl http://<server-ip>/start/<device-id>
67``` \ No newline at end of file