Update 107.md

This commit is contained in:
Vlad Stan 2023-10-24 15:47:17 +03:00 committed by GitHub
parent c0a7814776
commit 153857fb7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
107.md
View File

@ -40,15 +40,14 @@ A `user` can publish these event kinds:
The content of events can be transmitted in clear text (for public data) or as [NIP-59 Gift Wrap](https://github.com/staab/nips/blob/NIP-59/59.md). The content of events can be transmitted in clear text (for public data) or as [NIP-59 Gift Wrap](https://github.com/staab/nips/blob/NIP-59/59.md).
### Intent Events ### Intent Events
Intent Events represent different actions that can be performed on a device. These actions can be triggered by a `user` or by another `device`. The content of the event is a JSON. Intent Events represent different actions that can be performed on a device. These actions can be triggered by a `user` or by another `device`. The content of the event is a `JSON` which `MUST` have a `type` field indicating the what the JSON represents. Possible types:
Each `JSON` message `MUST` have a `type` field indicating the what the JSON represents. Possible types:
| Message Type | Sent By | Description | | Message Type | Sent By | Description |
|--------------|----------------|------------------| |--------------|----------------|------------------|
| 0 | User | Configure Device | | 0 | User | Configure Device |
### Event: Configure `device` ### Event: Configure `device`
This message is sent by a `user` to a `device`. The `device` saves the config locally and uses it. This message is sent by a `user` to a `device`. The `device` saves the config locally and then uses it.
**Event Content**: **Event Content**:
```json ```json