I'm trying to send some data from the hub to the terminal for some debug. But I can't figure out how I can connect the hub via Bluetooth to my PC. I tried to look in the API documentation and maybe I found something but I'm not sure.

  • 1
    Pybricks is great, so is the support they provide, I think you'd be better of asking your question there: github.com/pybricks/support Mar 28, 2023 at 7:30
  • 2
    Hi tom and welcome to Bricks.SE! Can you show us what have you tried and how did it fail?
    – zovits
    Mar 28, 2023 at 7:31

1 Answer 1


The easiest way to use pybricksdev is as a command line tool. I recommend using pipx to ensure that your are always using the latest version of pybricksdev.

Assuming you have already installed pipx and you have a terminal open in VS Code in the same directory as the script you want to run, run the following command:

pipx run pybricksdev run ble my_script.py

Where my_script.py is replaced with the actual name of the script you want to run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.