Skip to content

A SYS crate for the Matter C++ SDK, as well as a tiny set of type-safe Rust wrappers around it.

Notifications You must be signed in to change notification settings

sysgrok/chip-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chip-sys

CI crates.io

A SYS crate for the Matter C++ SDK, as well as a tiny set of type-safe Rust wrappers around it.

Currently buildable and runnable on Linux only, but should not be difficult to port to ESP32 and other MCUs which are already supported by the C++ SDK.

Purpose in life: serve as a stop gap solution, until the native Rust Matter SDK project gets feature parity with the Matter C++ SDK.

Demo

  • Install the Linux build prerequisites. For Debian/Ubuntu:
    sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev
  • Build the chip-tool utility from the Matter SDK
  • Build and run the crate and the Light On-Off example:
    cargo run --example on_off
  • (During the build, the SYS crate will download and cache a private copy of the Matter SDK and its tooling; you only need to have the build prerequisites of your distro pre-installed, as per above.)
  • Comission the Light example using chip-tool:
    chip-tool pairing onnetwork-long 23 20202021 3840
  • Turn the Light on using chip-tool:
    chip-tool onoff on 23 3
  • Turn it back off:
    chip-tool onoff off 23 3

About

A SYS crate for the Matter C++ SDK, as well as a tiny set of type-safe Rust wrappers around it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published