tree: 8fb6eb0ae5e8238f2412ae7a87a4076a345f83f3 [path history] [tgz]
  1. cpp/
  2. end_to_end_tests/
  3. fidl/
  4. python/
  5. scripts/
  6. src/
  7. tests/
  8. .gitignore
  9. base-tooling-requirements.txt
  10. BUILD.gn
  11. OWNERS
  12. pyproject.toml
  13. README.md
  14. requirements.txt
src/developer/ffx/lib/fuchsia-controller/README.md

Fuchsia Controller

The fuchsia-controller Python library is a host library for interacting with target devices from a host.

Example

The example.py program illustrates how to get information from a target with fuchsia-controller. You can build and run the program with the following commands:

fx set minimal.x64 --with-host "//src/developer/ffx/lib/fuchsia-controller:example"
fx build
ffx emu start -H --net user --name 'emulator-a'
ffx emu start -H --net user --name 'emulator-b'
ffx emu start -H --net user --name 'emulator-c'
ffx target list
fx run-in-build host_x64/obj/src/developer/ffx/lib/fuchsia-controller/example.pyz \
  '127.0.0.1:<emulator-a-port>' \
  '127.0.0.1:<emulator-b-port>' \
  '127.0.0.1:<emulator-c-port>'