Closed Bug 782420 Opened 12 years ago Closed 12 years ago

[b2g-bluetooth] Add connection function for connecting to already paired devices

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: qdot, Unassigned)

References

Details

Once we can get a list of paired devices (bug 777671), we need a way to be able to connect to them if they aren't already connected. For dbus at least, this requires calling CreateDevice through the Adapter Interface with the device address. For now, we can create a "connect" function on BluetoothAdapter that will take a BluetoothDevice object and run this function on it.
AFAIK, CreateDevice is a process for us to get object path of remote devices, and CreatePairedDevice does exactly the same thing and an additional pairing process. Thus I don't think we need another CreateDevice if its object path already exists.

Moreover, we don't need a 'connect' function in adapter for establishing a low-level connection. All we have to do is to create a BluetoothSocket and use its connect function to establish a profile-level connection.
Once again proving that once I'm done coding on this protocol. I should really just sit down and read the damn protocol spec. \o/

Thanks for the correction. Marking invalid. :)
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.