Update 107.md

This commit is contained in:
Vlad Stan 2023-10-25 12:22:25 +03:00 committed by GitHub
parent 06d9fe273b
commit a53e419f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
107.md
View File

@ -95,10 +95,16 @@ Example that turns on a device and sets the temperature to `20.9` degrees Celsiu
**Event Tags**:
```json
"tags": [["p", <String, pubkey of the targeted device]]
"tags": [["p", <String, pubkey of the targeted device(s)]]
```
- the `p` tag is required, its value MUST be the same as the pubkey 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 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).
**Event Tags**:
```json
"tags": [["p", <String, pubkey of the listening device(s)]]
```
- the `p` tag is required, its value MUST be the same as the `publish_to_pubkeys` value from the [Configure Device Event](https://github.com/arcbtc/nips/edit/nip_107/107.md#configure-device-event-kind-30107)