tree: b126013e67ca80701518f4a317b29996c56b2b62 [path history] [tgz]
  1. commands/
  2. include/
  3. third_party/
  4. .gn
  5. args.gni
  6. BUILD.gn
  7. jfc.gni
  8. main.cpp
  9. README.md
  10. with_pw_rpc.gni
examples/jf-control-app/README.md

Matter Joint Fabric Control Example

An example application that acts as a commissioner and control application for jf-admin-app (Joint Fabric Administrator Application).

It is also used for initial commissioning of the jf-admin-app and also as a PKI provider.

All the instructions given below assumes that we are in the connectedhomeip repo, thus referencing the “top level”.

Prepare for building

Before running any other build command, the scripts/activate.sh environment setup script should be sourced at the top level. This script takes care of downloading GN, ninja, and setting up a Python environment with libraries used to build and test.

  • Run the following command at the top level:

      $ source scripts/activate.sh
    

Checking if submodules are up to date

  • Pull the required submodules at the top level:

      $ ./scripts/checkout_submodules.py --shallow --platform linux
    

Building the Example Application on Linux

  • Build the example application:

      $ cd examples/jf-control-app/
      $ gn gen out/debug
      $ ninja -C out/debug
    
  • To delete generated executable, libraries and object files use:

      $ cd examples/jf-control-app/
      $ rm -rf out/