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
15fc9f1ebe
commit
0deb1db0ca
12
107.md
12
107.md
|
@ -8,9 +8,8 @@ Nostr Internet of Things
|
||||||
|
|
||||||
## Rationale
|
## Rationale
|
||||||
|
|
||||||
The terms/conditions of IoT software/hardware is horrible. A user should be able to message a light or heating and ask it to turn on/off. Nostr gives the simple, permissionless development environment IoT needs.
|
The terms/conditions of IoT software/hardware is horrible. A user should be able to message a light or heating system and ask it to turn on/off. Nostr gives the simple, permissionless development environment IoT needs.
|
||||||
|
|
||||||
All communication happens over [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md).
|
|
||||||
|
|
||||||
## Terms
|
## Terms
|
||||||
|
|
||||||
|
@ -31,10 +30,13 @@ The `device` can also push data such as sensor readings and updates.
|
||||||
|
|
||||||
## Events
|
## Events
|
||||||
|
|
||||||
A `device` or a `user` can publish these event kinds:
|
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 `user` can publish these event kinds:
|
||||||
|
|
||||||
| Kind | | Description | NIP |
|
| Kind | | Description | NIP |
|
||||||
|---------|------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------|
|
|--------|----------|-------------------------------|-----------------------------------------------------------------------------------------|
|
||||||
| `4 ` | `direct_message` | Communicate between two `devices` or between a `device` and a `user`.<br/>The messages must be a JSON following the structures defined In this NIP. | [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md) |
|
| `8000` | `intent` | Trigger an action on a device | [NIP-91 Event Kinds](https://github.com/nostr-protocol/nips/blob/iot/91.md#event-kinds) |
|
||||||
|
|
||||||
|
|
||||||
### Messages
|
### Messages
|
||||||
JSON messages that represent different actions or states can be exchanged between two or more `devices` or between `users` and `devices`.
|
JSON messages that represent different actions or states can be exchanged between two or more `devices` or between `users` and `devices`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user