mozilla / libdweb

Extension containing an experimental libdweb APIs
MIT License
442 stars 32 forks source link

Bluetooth API #81

Closed willemneal closed 5 years ago

willemneal commented 6 years ago

From what I've gleaned from Mozilla's documentation it seems there is some access to bluetooth, but it's limited and doesn't work for mobile.

Regardless, I'm interested in the possibility of using bluetooth as a meshnet and wonder your thoughts on it.

lidel commented 5 years ago

IPFS/libp2p projects are interested in adding Bluetooth transport.

There seems to be an Emerging Web Spec by Web Bluetooth Community Group:

Most of our activity happens in our GitHub repository, with supporting code in adjacent repositories in the WebBluetoothCG GitHub organization.

It does not seem to be ready yet:

I imagine @willemneal means the non-standard Gecko API from [2], yes?

@Gozala any thoughts on how feasible it would be to expose it via libdweb?

Gozala commented 5 years ago

From what I can tell by searching in the Firefox repo there's no implementation of it in the tree https://github.com/mozilla/gecko-dev/search?l=C%2B%2B&q=bluetooth

Which suggests me that either:

  1. API never landed to Firefox and was Firefox OS only.
  2. It was backed out after Firefox OS got discontinued.

Either way there I don't see a reasonable way of exposing it via libdweb.

autonome commented 5 years ago

It was Firefox OS only, and removed from mozilla-central when the B2G codebase was removed.

Following along here is best place to see Mozilla's position on the standards part: https://github.com/mozilla/standards-positions/issues/95

If you're interested in experimenting, here's Servo's Bluetooth implementation: http://szeged.github.io/servo/

On Wed, Dec 19, 2018 at 1:42 PM Irakli Gozalishvili < notifications@github.com> wrote:

From what I can tell by searching in the Firefox repo there's no implementation of it in the tree https://github.com/mozilla/gecko-dev/search?l=C%2B%2B&q=bluetooth

Which suggests me that either:

  1. API never landed to Firefox and was Firefox OS only.
  2. It was backed out after Firefox OS got discontinued.

Either way there I don't see a reasonable way of exposing it via libdweb.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mozilla/libdweb/issues/81#issuecomment-448701554, or mute the thread https://github.com/notifications/unsubscribe-auth/AADDtzoiKlClepWEH6rGm8xhMN41wQyLks5u6oiPgaJpZM4WQBQL .

Gozala commented 5 years ago

I would love Bluetooth API but I'm afraid it's unrealistic to get it out without a larger Firefox support. Closing this issue in an effort to migrate issues to bugzilla & code into gecko.