Skip to content

project-chip/rs-matter

Repository files navigation

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 On-Off Light example (Linux, MacOS X)

$ cargo run --example onoff_light

Building all examples (Linux, MacOS X)

$ cargo build --examples

NOTE: If you are on Linux and are running the Avahi daemon, you might want to build with:

$ cargo build --examples --features zeroconf

Unit Tests

$ cargo test -- --test-threads 1

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

Test with Google/Apple/Alexa controllers

All of these should work. Follow the instructions in your controller phone app.

Notes

The rs-matter implementation is relatively complete, yet still a work-in-progress and does not yet fully implement all Matter system clusters.

With that said, making it run against the Matter C++ SDK Test Suite is in progress.

About

Rust implementation of the Matter protocol. Status: Experimental

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 26

Languages