From 05a988973a451142befa8a33b8e027f8747d55f2 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Wed, 25 Oct 2023 12:32:49 +0300 Subject: [PATCH] Update 107.md --- 107.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/107.md b/107.md index 996dcc7..fbf13e7 100644 --- a/107.md +++ b/107.md @@ -55,7 +55,7 @@ This message is sent by an admin `user` to a `device`. The `device` saves the co "publish_to_pubkeys":[ []], "intents_from_pubkeys":[ []], "publish_on_change": , - "publish_interval": + "publish_interval": "unix_time": } ``` @@ -100,7 +100,10 @@ Example that turns on a device and sets the temperature to `20.9` degrees Celsiu ### Data Events (`kind: 8001 - 8999`) -Data Events represent data publised by `device`(s). The `kind` of the event and the `content` must follow ths specification from [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds). +Data Events represent data published by `device`(s). The `kind` of the event and the `content` must follow ths specification from [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds). + +> [!NOTE] +> If a device has more sensors attached (eg: temperature and humidity) then it will publish separate events for each measured value. **Event Tags**: ```json