tree: 17cc0ba77b032c82f4f39115816822b03bfab5c0 [path history] [tgz]
  1. commands/
  2. include/
  3. rpc/
  4. third_party/
  5. .gn
  6. args.gni
  7. BUILD.gn
  8. fabric-admin.gni
  9. main.cpp
  10. README.md
  11. with_pw_rpc.gni
examples/fabric-admin/README.md

Matter Fabric Administrator Example

An example application that supports synchronization of devices across fabrics fabrics.



Building the Example Application

For Linux host example:

./scripts/examples/gn_build_example.sh examples/fabric-admin out/debug/standalone chip_config_network_layer_ble=false 'import("//with_pw_rpc.gni")'

For Raspberry Pi 4 example:

Pull Docker Images

docker pull connectedhomeip/chip-build-vscode:latest

Run docker

docker run -it -v ~/connectedhomeip:/var/connectedhomeip connectedhomeip/chip-build-vscode:latest /bin/bash

Build

cd /var/connectedhomeip

git config --global --add safe.directory /var/connectedhomeip
git config --global --add safe.directory /var/connectedhomeip/third_party/pigweed/repo
git config --global --add safe.directory /var/connectedhomeip/examples/common/QRCode/repo

./scripts/run_in_build_env.sh \
 "./scripts/build/build_examples.py \
    --target linux-arm64-fabric-admin-clang-rpc \
    build"

Transfer the fabric-admin binary to a Raspberry Pi

scp ./fabric-admin ubuntu@xxx.xxx.xxx.xxx:/home/ubuntu