Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Read/Write an attribute in README #981

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,37 @@ When the start_listening command is issued, the server will dump all existing no
}
```

**Read an attribute**

Here is an example of reading `OnOff` attribute on a switch (OnOff cluster)

```json
{
"message_id": "read",
"command": "read_attribute",
"args": {
"node_id": 1,
"attribute_path":"1/6/0"
}
}
```

**Write an attribute**

Here is an example of writing `OnTime` attribute on a switch (OnOff cluster)

```json
{
"message_id": "write",
"command":"write_attribute",
"args":{
"node_id":1,
"attribute_path":"1/6/16385",
"value": 10
}
}
```

**Send a command**

Here is an example of turning on a switch (OnOff cluster)
Expand Down
Loading