How I can connect the lego spike prime hub via bluetooth in visual studio code using the pybricksdev library? #1014
Unanswered
tommlazzza
asked this question in
Q&A
Replies: 2 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I can connect with my hub, but if my script imports any libraries, I get an error. import asyncio
from flask import Flask, jsonify, request
from controller import Controller
import broadcast
import json
from sys import argv
try:
env = argv.pop(1)
except IndexError:
env = 'default'
...Is it possible to connect my hub within my Python script? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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][1] and maybe I found something but I'm not sure.
1
Beta Was this translation helpful? Give feedback.
All reactions