I was thinking about trying to port the cross platform gateway code to WebBluetooth so it could run in the browser. Has anyone tried it yet?
If you are wondering why, here is my case: We are making BLE sensors that report data to the browser. Chrome now supports WebBluetooth (on Mac, Chromebook, and Android), so we can connect directly to these sensors without needing any extra software or plugins.
I’ve already made Adafruit Bluefruit Feather based devices. But those devices can’t be easily updated over the air. It seems the Bluz might solve this OTA issue. However, I don’t want the user to need the extra gateway hardware, or run an additional application in order get updates. If instead the gateway is running in the browser then the user can just connect to the device from a web page and the code on the device could be updated.
Looking through the cross platform gateway code, it seems it would pretty simple to port it. However the browser wouldn’t be able to open a direct socket connection to the Particle Cloud. So perhaps a solution is to use websockify to proxy the particle cloud socket via a websocket.