• I'm using Version 54.0.2840.99 m chrome on windows 10.

    https://googlechrome.github.io/samples/web-bluetooth/device-info.html

    Requesting Bluetooth Device...
    Argh! NotSupportedError: Web Bluetooth is not enabled on this platform. To find out how to enable it and the current implementation status visit https://goo.gl/HKa2If
    

    this leads to here:
    chrome://flags/#enable-web-bluetooth

    Web Bluetooth Mac, Linux, Chrome OS, Android
    Enables Web Bluetooth which could allow websites to connect to and control Bluetooth devices around you. [#enable](https://forum.espruino.com/search/?q=%23enable)-web-bluetooth
    Sorry, this experiment is not available on your platform.
    BLE Advertising in Chrome Apps Chrome OS
    Enables BLE Advertising in Chrome Apps. BLE Advertising might interfere with regular use of Bluetooth Low Energy features. [#enable](https://forum.espruino.com/search/?q=%23enable)-ble-advertising-in-apps
    Sorry, this experiment is not available on your platform.
    

    How do you enable?

    Thanks

  • I'm in the middle of writing up some docs at the moment, but unfortunately Web Bluetooth support for Chrome on Windows is planned to arrive in the first few months of next year (when I did the KickStarter everything I heard pointed to it being done by now).

    To make matters worse, the existing BLE library for Node.js wants to 'claim' the BLE device, so only really works on Windows 7 and below. As a result I'm actually having to make my own Node.js BLE library - so you'll have to download an app, which will be a 'native' IDE.

    Hopefully that'll all change when Google update Chrome, but until then if you want to use Web Bluetooth it's probably best to do so with an Android phone.

  • Thanks. I don't have an android phone. What about running under virtual box using USB passthrough ( I have a USB dongle). Is there a browser for Linux that supports web Bluetooth?

  • The current implementation state is here: https://github.com/WebBluetoothCG/web-bluetooth/blob/master/implementation-status.md

    Yesterday I just finished a build of the web IDE for windows that should handle Bluetooth on pretty much any version of windows.

    However if you really want Web Bluetooth you might well have some luck running Linux with VirtualBox (or even possibly on a Raspberry Pi?). The important thing is you want a version of the bluetooth libraries in Linux that's 5.40 or later (Ubuntu 16.04/Mint 18 still doesn't have that). I've written a guide to installing it afterwards which'll be online soon (maybe today) though.

    Having said all that it is only a few months until it gets added to the Windows build of Chrome, so it might be worth holding out for that...

  • Just to add, if you installed Ubuntu 16.10 it looks like you get a new enough BlueZ version that it should 'just work' - that'd be the best bet

  • And... A downloadable Web IDE for Windows is now here: http://www.espruino.com/Web+IDE

    It supports directly connecting to BLE adaptors for Windows versions <8.1, or in the case of 8.1 and later it'll use the Windows APIs to go via the drivers... So even though Web Bluetooth isn't there yet you'll still be fine.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

How to enable bluetooth web in chrome - in preparation for puck.js ?

Posted by Avatar for Wilberforce @Wilberforce

Actions