Re: Query regarding BLE GetPrimaryServices()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ajay,

On Fri, Oct 21, 2011 at 10:04 AM, Ajay Pillai <Ajay.Pillai@xxxxxxx> wrote:
>>You cannot do this by hand. It is done right after connection (or
>>pairing, if using CreatePairedDevice). For more information on how to
>>read the services and characteristics over D-Bus, see
>>doc/attribute-api.txt.
>
> Does this mean that it is not possible for an Application to just come up, and list the primary services of a remote LE device that is already connected(due to another application)? (via DBUS)
> Is this something that we can just add as a new API (listPrimaryServices) to the " org.bluez.Device" interface of the device object?
>

Applications can access the primary service using the Generic Attribute API.
After pairing, bluetoothd executes discover all primary services.
Check the "Services" property in the Device to discovery, it contains
an array of paths for the primary services.

Use the test/test-attrib script to understand how it works. Using
d-feet you can also access the primary services and characteristics.

BR,
Claudio
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux