diff --git a/107.md b/107.md index 81d7f6f..e56dc34 100644 --- a/107.md +++ b/107.md @@ -37,6 +37,7 @@ A `user` can publish these event kinds: |---------|----------|-------------------------------|-----------------------------------------------------------------------------------------| | `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) | 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). @@ -83,7 +84,7 @@ The content of the event is a `JSON` array representing the data type and the da **Event Content**: ```json - [[, ]] + [[, ]] ``` Example that turns on a device and sets the temperature to `20.9` degrees Celsius: @@ -99,3 +100,5 @@ 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 of the `device`. +### Data Events (`kind: 8000 - 8999`) +Data Events represent data publised by ....