project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
323 stars 45 forks source link

rs-matter: The Rust Implementation of Matter

experimental license CI CI - TLV crates.io Matrix

Build

Building the library

$ cargo build

Building and running the example (Linux, MacOS X)

$ cargo run --example onoff_light --features async-io

Test

With the chip-tool (the current tool for testing Matter) use the Ethernet commissioning mechanism:

$ chip-tool pairing code 12344321 <Pairing-Code>

Or alternatively:

$ chip-tool pairing ethernet 12344321 123456 0 <IP-Address> 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

Notes

The matter-rs project is a work-in-progress and does NOT yet fully implement Matter.