Socket() in spike prime #1785
-
Hey, I know it is possible to use socket() with EV3 but is it somehow possible with spike prime too? I want to establish a connection between the hub and pc that way so the pc can use regular python. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
On SPIKE Prime we currently only support Bluetooth Low Energy. So RFCOMM socket isn't possible. But we recently did add a new |
Beta Was this translation helpful? Give feedback.
-
Here is a tutorial to communicate between the hub and a computer running Python, via Bluetooth: https://pybricks.com/projects/tutorials/wireless/hub-to-device/pc-communication/ |
Beta Was this translation helpful? Give feedback.
This is the pull request where the feature was added: pybricks/pybricks-micropython#246 with an example hub program in pybricks/pybricks-micropython#246 (comment).
It doesn't look like we've added anything to pybricksdev to show how the PC side of things would work yet though.