diff --git a/107.md b/107.md index aafedc24..81d7f6fd 100644 --- a/107.md +++ b/107.md @@ -79,8 +79,14 @@ This message is sent by an admin `user` to a `device`. The `device` saves the co ### Intent Events (`kind: 8000`) 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` array +The content of the event is a `JSON` array representing the data type and the data value as specified in [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds) +**Event Content**: +```json + [[, ]] +``` + +Example that turns on a device and sets the temperature to `20.9` degrees Celsius: ```json [[8001, true], [8003, 20.9]] ``` @@ -88,8 +94,8 @@ The content of the event is a `JSON` array **Event Tags**: ```json - "tags": [["d",