From f8789df9dccdb82c222a2f414799d4ca2a80a4ec Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Wed, 25 Oct 2023 14:49:28 +0300 Subject: [PATCH] Update 107.md --- 107.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/107.md b/107.md index e453fee0..0e82dc86 100644 --- a/107.md +++ b/107.md @@ -30,14 +30,14 @@ The `device` can also push data such as sensor readings and updates. ## Events -A `device` can publish any of the events described in [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds). +A `device` can publish any of the events described in [Data Types](https://github.com/arcbtc/nips/blob/107/107.md#data-types). A `user` can publish these event kinds: | Kind | | Description | NIP | |---------|----------|-------------------------------|-----------------------------------------------------------------------------------------| | `30107` | `config` | Configure a device | [NIP-107 Configure Device Event](https://github.com/arcbtc/nips/edit/nip_107/107.md#configure-device-event) | -| `8000` | `intent` | Trigger an action on a device | [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds) | -| `8001 - 8999` | `data` | Publish the state of a `device` | [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds) | +| `8000` | `intent` | Trigger an action on a device | [NIP-107 Intent Event](https://github.com/arcbtc/nips/blob/107/107.md#intent-events-kind-8000) | +| `8001. | `data` | Publish the state of a `device` | [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#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). @@ -101,7 +101,7 @@ Example that turns on a device and sets the temperature to `20.9` degrees Celsiu - the `p` tag is required, its value MUST be the same as the pubkey(s) of the target `device`(s). -### Data Events (`kind: 8001 - 8999`) +### Data Events (`kind: 8001`) --- 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).