I am trying to go under the hood of the Bluetooth connectivity of the SPIKE Prime Hub as a demo for some kids. I managed to figure out how to use the Bluetooth Web API to connect to a Bluetooth device. However, after this I don't know how I can send Python code to the hub to be run.

Note that I am aware of libraries like Pybricks that do this, and that's an amazing library. I am doing this more for educational purposes. My understanding is that the LEGO Education SPIKE web app does this as well, and was just trying to implement a very basic version.



Your Answer

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

Browse other questions tagged or ask your own question.