https://github.com/project-chip/rs-matter
Rust implementation of the Matter protocol. Status: Experimental
https://github.com/project-chip/rs-matter
Last synced: about 1 year ago
JSON representation
Rust implementation of the Matter protocol. Status: Experimental
- Host: GitHub
- URL: https://github.com/project-chip/rs-matter
- Owner: project-chip
- License: apache-2.0
- Created: 2022-12-12T16:43:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T01:42:38.000Z (over 1 year ago)
- Last Synced: 2024-10-29T17:13:39.529Z (over 1 year ago)
- Language: Rust
- Size: 1.58 MB
- Stars: 328
- Watchers: 40
- Forks: 45
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# rs-matter: The Rust Implementation of Matter

[](https://raw.githubusercontent.com/project-chip/matter-rs/main/LICENSE)
[](https://github.com/project-chip/matter-rs/actions/workflows/ci.yml)
[](https://github.com/project-chip/matter-rs/actions/workflows/ci-tlv-tool.yml)
[](https://crates.io/crates/rs-matter)
[](https://matrix.to/#/#matter-rs:matrix.org)
## Build
### Building the library
```
$ cargo build
```
### Building and running the example (Linux, MacOS X)
```
$ cargo run --example onoff_light --features examples
```
### Building and running the BLE example (Linux, MacOS X)
```
$ cargo run --example onoff_light_bt --features examples
```
## Test
With the [`chip-tool` (the current tool for testing Matter)](https://github.com/project-chip/connectedhomeip/blob/master/examples/chip-tool/README.md) use the Ethernet commissioning mechanism:
```
$ chip-tool pairing code 12344321
```
Or alternatively:
```
$ chip-tool pairing ethernet 12344321 123456 0 5540
```
Interact with the device
```
# Read server-list
$ chip-tool descriptor read server-list 12344321 0
# Read On/Off status
$ chip-tool onoff read on-off 12344321 1
# Toggle On/Off by invoking the command
$ chip-tool onoff on 12344321 1
```
## Functionality
- Secure Channel:
- PASE
- CASE
- Interactions:
- Invoke Command(s), Read Attribute(s), Write Attribute(s)
- Commissioning:
- over Ethernet
- Network Commissioning Cluster
- General Commissioning Cluster
- Operational Certificates Cluster
- Some [TODO](TODO.md) are captured here
## Notes
The matter-rs project is a work-in-progress and does NOT yet fully implement Matter.