Closed Bug 758556 Opened 12 years ago Closed 12 years ago

B2G Bluetooth: BluetoothDevice (API and Implementation)

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: echou, Unassigned)

References

Details

BluetoothDevice is an object which represents a remote bluetooth device. The API proposal is listed below:

 interface nsIDOMBluetoothDevice : nsISupports
 {
   readonly attribute DOMString address;
   readonly attribute unsigned long class;
   readonly attribute bool connected;
   readonly attribute DOMString name;
   readonly attribute bool paired;
   readonly attribute jsval serviceUuids;   // DOMString[]

   nsIDOMBluetoothSocket createRfcommSocket(in DOMString aServiceUuid);
 };

As you can see, all properties are readonly, they are just for web pages to query current status of the device. The function 'createRfcommSocket' is like BluetoothSocket factory, which means out device can connect to another remote device and its specific service by operating this BluetoothSocket object.
Note that the getters/setters part of this is coming in as part of Bug 740744. However, that doesn't have the BluetoothSockets implementation. We can either leave this bug around until BluetoothSockets is implemented, or fold it into the sockets bug. Going to wait for a decision from echou on that.
Marking invalid. This is never going to have a patch on it since we're piecemealing BluetoothDevice together in other bugs.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.