Update 107.md

This commit is contained in:
Vlad Stan 2023-10-24 16:21:46 +03:00 committed by GitHub
parent dcfb78932f
commit 0984355d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
107.md
View File

@ -58,15 +58,15 @@ This message is sent by a `user` to a `device`. The `device` saves the config lo
"description": <String (optional), device description>, "description": <String (optional), device description>,
"categories":[ <String (optional), device category, such as 'boiler'>], "categories":[ <String (optional), device category, such as 'boiler'>],
"send_to_pubkeys":[ [<String (optional), user public-key>]], "send_to_pubkeys":[ [<String (optional), user public-key>]],
"commands_from_pubkeys":[ [<String (optional), user public-key>]], "intents_from_pubkeys":[ [<String (optional), user public-key>]],
} }
``` ```
| Field | Description | | Field | Description |
|---|---| |---|---|
| `admin_pubkeys` | List of public keys that are allowed to configure this device.<br>A fresh/blank device will not have this value, so the first received `"type: 0"` should set it. | | `admin_pubkeys` | List of public keys that are allowed to configure this device.<br>A fresh/blank device will not have this value, so the first received `"type: 0"` should set it.<br/> The `admin_pubkeys` implicitly have the `actions_from_pubkeys` permissions. |
| `send_to_pubkeys` | | | `send_to_pubkeys` | List of public keys to which events are published. |
| `commands_from_pubkeys` | | | `actions_from_pubkeys` | List of public keys that are allowed to trigger an action on this device.<br/> The `admin_pubkeys` implicitly have the `actions_from_pubkeys` permissions. |
### Event: Update a `device` ### Event: Update a `device`