tree: b82c8903d2e56bcb7584ff00b2a2b9035ff19af2
  1. .agents/
  2. cpp/
  3. end_to_end_tests/
  4. fidl/
  5. python/
  6. scripts/
  7. src/
  8. tests/
  9. .gitignore
  10. base-tooling-requirements.txt
  11. BUILD.gn
  12. OWNERS
  13. pyproject.toml
  14. README.md
  15. 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>'