From c629819c7226dcdddf26e1fea379d2170a508b51 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 24 Oct 2023 17:16:32 +0300 Subject: [PATCH] Update 107.md --- 107.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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",