tree: 065480292542fdaffb97b7222021d22bd779e54e [path history] [tgz]
  1. third_party/
  2. .gn
  3. args.gni
  4. BUILD.gn
  5. Dockerfile
  6. entrypoint.sh
  7. main.cpp
  8. README.md
examples/tv-casting-app/linux/README.md

CHIP TV Casting App Example

This is a CHIP TV Casting app that can be used to cast content to a TV. This app discovers TVs on the local network that act as commissioners, lets the user select one, sends the TV a User Directed Commissioning request, enters commissioning mode, advertises itself as a Commissionable Node and gets commissioned. Then it allows the user to send CHIP ContentLauncher commands to the TV.

Building

  • Install tool chain

      $ sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev libglib2.0-dev ninja-build python3-venv python3-dev unzip
    
  • Build the example application:

      $ cd ~/connectedhomeip/examples/tv-casting-app/linux
      $ git submodule update --init
      $ source third_party/connectedhomeip/scripts/activate.sh
      $ gn gen out/debug
      $ ninja -C out/debug
    
  • To delete generated executable, libraries and object files use:

      $ cd ~/connectedhomeip/examples/tv-casting-app/linux
      $ rm -rf out/
    

Running the Complete Example on Linux

  • Pre-requisite: Build and run the tv-app

    $ cd ~/connectedhomeip/examples/tv-app/linux
    $ out/debug/chip-tv-app
    
  • Run the tv-casting-app

    $ cd ~/connectedhomeip/examples/tv-casting-app/linux
    $ out/debug/chip-tv-casting-app
    

    Follow the on-screen prompts on the tv-casting-app console