p312z
p312z

Reputation: 83

Using Bluetooth with a Google Chrome extension

I've seen the experimental API for using Bluetooth has been recently released and I wanted to perform a few tests. I've looked at the official documentation at http://code.google.com/chrome/extensions/trunk/experimental.bluetooth.html but even the most simple example won't work. Of course, I previously set the permissions correctly in order to use the experimental APIs.

My background.js looks like this:

function booleanCallback(result) {
    alert(result.toString());
}

chrome.experimental.bluetooth.isPowered(booleanCallback);

No matter what, result is always undefined. Any thoughts on this?

Cheers.

Upvotes: 2

Views: 2733

Answers (1)

Mihai Parparita
Mihai Parparita

Reputation: 4236

The Bluetooth API is currently only implemented on Chrome OS. There are open issues for the implementation on Windows, Mac and Linux. You may want to star one or more of those to be updated when the API is available on more platforms.

Upvotes: 2

Related Questions