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.
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.