2022-12-27 09:32:52 +05:30
# matter-rs: The Rust Implementation of Matter
2022-12-12 08:51:27 -08:00
 [](https://raw.githubusercontent.com/project-chip/matter-rs/main/LICENSE)
2022-12-27 09:32:52 +05:30
[](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-openssl.yml)
[](https://github.com/project-chip/matter-rs/actions/workflows/test-linux-mbedtls.yml)
## Build
Building the library:
2023-01-15 15:41:46 +01:00
2022-12-27 09:32:52 +05:30
```
$ cargo build
```
Building the example:
2023-01-15 15:41:46 +01:00
2022-12-27 09:32:52 +05:30
```
$ RUST_LOG="matter" cargo run --example onoff_light
```
With the chip-tool (the current tool for testing Matter) use the Ethernet commissioning mechanism:
2023-01-15 15:41:46 +01:00
```
$ chip-tool pairing code 12344321 < Pairing-Code >
```
Or alternatively:
2022-12-27 09:32:52 +05:30
```
$ chip-tool pairing ethernet 12344321 123456 0 < IP-Address > 5540
```
Interact with the device
2023-01-15 15:41:46 +01:00
2022-12-27 09:32:52 +05:30
```
# 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
2023-01-15 15:41:46 +01:00
2022-12-27 09:32:52 +05:30
- 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.