Closed Bug 758520 Opened 13 years ago Closed 12 years ago

B2G Bluetooth: Bluetooth high-level utility functions

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 740744

People

(Reporter: echou, Unassigned)

References

Details

Attachments

(1 file)

We need an utility function set, which I called it BluetoothUtils, for higher layer object such as BluetoothAdapter & BluetoothDevice using.
When we send BlueZ commands or receive events sent from BlueZ, we usually need to transform device object path to device address or vice versa. On the other hand, web developers should only use device address to indicate which device they want to interact with. That's why we need these functions. (Of course BluetoothUtils will not only contain these two functions, however they are typical 'utility functions' so we can take a look at it at first.)
Attachment #627122 - Flags: feedback?(kyle)
Comment on attachment 627122 [details] [diff] [review] WIP v1: GetObjectPathFromAddress and GetAddressFromObjectPath Review of attachment 627122 [details] [diff] [review]: ----------------------------------------------------------------- Looks good so far.
Attachment #627122 - Flags: feedback?(kyle) → feedback+
Got rolled into 740744, with the ObjectPath calls coming in with the bonding stuff in 730992
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: