Bluetooth data in a replit possible?

Is it possible to capture bluetooth data from a local machine in a replit? I’m writing a python script that captures and streams data from a bluetooth device.

I’d like to know if there is a way to use replit to capture data from the device. If not in replit directly, perhaps could it could open a Chrome browser and get the data directly from the browser (and stream it to the replit terminal?)

Thanks for any help!

Replit Profile: https://replit.com/@travelmail26

1 Like

I don’t think this would work, since Bluetooth is built into your machine and not a Repl. Even if it could be passed through the Chrome API, I don’t think they have implemented it to pass through your computer to the Repl themselves. You are best running the script on your machine.

Does this help?

5 Likes

What about port forwarding from a local machine?

1 Like

I mean that since Chrome has a Bluetooth API, that it would be possible for Replit to add in where if you write Bluetooth transmission code that it would have Chrome get the data and send it to Replit.

1 Like

Repls are Virtual Machines hosted in the cloud, not local machines so it’s not possible to connect bluetooth to one.

5 Likes

@travelmail26 Has your question been solved? If so, please mark the solution with the Solution button.

2 Likes

You could use Web Bluetooth and then send data to a repl over a websocket.

2 Likes

Yeah but Replit would have to do that, wouldn’t they? :thinking: