When I try to call navigator.bluetooth.requestDevice I get this error: “requestDevice() called from cross-origin iframe.” It seems like this problem might be related to the issue with native window notifications (Native window notifications - not working?). If so, has there been any further thoughts on how to handle this type of situation?
My first approach to getting sensor data was using websockets but I ran into problems getting the secure version (wss) to work on the little iot device that’s producing the sensor data. Both the websocket and web bluetooth approaches worked fine using non-secure local site, but I was really hoping to be able to work with the live data directly in Observable.
Hi aallman, have you done any more work with WebBLE since this post? I’m looking for examples of streaming arduino sensor data into Observable or other data visualization solutions.
I’m looking forward to playing with this on a home project. I’m going to try to use this technique to stream signal data to Observable and play around with real-time visualization to help with tuning of PID loops on a table tennis ball robot.
Sorry! I missed your note when it was first posted. I haven’t done much with streaming data into a web page at this point; only sending commands from a web page to a device (ESP32).