Matter
Matter protocol implemented in pure Crystal Lang.
Installation
-
Add the dependency to your
shard.yml:dependencies: matter: github: spider-gazelle/matter -
Run
shards install
Example Device
An example OnOff device is provided in the ./examples directory.
- Build using:
crystal build examples/matter_switch_device.cr -o bin/matter_switch - Validate with chip-tool
- Launch
bin/matter_switch, grab the chip-tool command line in the output - Clear any previous sessions:
chip-tool storage clear-all - Commission using chip-tool
- Run:
crystal run examples/device_validation.cr
- Launch
Confirmed working with iOS.
Contributing
- Fork it (https://github.com/spider-gazelle/matter/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Stephen von Takach - creator and maintainer