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.
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
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
my_script.py is replaced with the actual name of the script you want to run.