Update 107.md

This commit is contained in:
Vlad Stan 2023-10-24 15:33:47 +03:00 committed by GitHub
parent 15fc9f1ebe
commit 0deb1db0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
107.md
View File

@ -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).
| Kind | | Description | NIP | A `user` can publish these event kinds:
|---------|------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| `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) | | Kind | | Description | NIP |
|--------|----------|-------------------------------|-----------------------------------------------------------------------------------------|
| `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`.