mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Update 107.md
This commit is contained in:
parent
69055d1e58
commit
f8789df9dc
8
107.md
8
107.md
|
@ -30,14 +30,14 @@ The `device` can also push data such as sensor readings and updates.
|
||||||
|
|
||||||
## Events
|
## 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:
|
A `user` can publish these event kinds:
|
||||||
|
|
||||||
| Kind | | Description | NIP |
|
| 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) |
|
| `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) |
|
| `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 - 8999` | `data` | Publish the state of a `device` | [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds) |
|
| `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).
|
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).
|
- 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).
|
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).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user