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
c629819c72
commit
e5ebfe7d16
5
107.md
5
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) |
|
| `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-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).
|
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**:
|
**Event Content**:
|
||||||
```json
|
```json
|
||||||
[[<Integer, Iot kind>, <Any, value> ]]
|
[[<Integer, between 8001 and 8999>, <Any Type> ]]
|
||||||
```
|
```
|
||||||
|
|
||||||
Example that turns on a device and sets the temperature to `20.9` degrees Celsius:
|
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`.
|
- 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 ....
|
||||||
|
|
Loading…
Reference in New Issue
Block a user