Hi, On Wed, Feb 16, 2011 at 6:13 PM, Elvis PfÃtzenreuter <epx@xxxxxxxxxxx> wrote: > This patch proposes extensions to Attribute API, giving access to all > characteristic descriptors (beyond 'Description' and 'Format'). > --- > Âdoc/attribute-api.txt |  28 ++++++++++++++++++++++++++++ > Â1 files changed, 28 insertions(+), 0 deletions(-) > > diff --git a/doc/attribute-api.txt b/doc/attribute-api.txt > index 23808e6..5ee189e 100644 > --- a/doc/attribute-api.txt > +++ b/doc/attribute-api.txt > @@ -104,6 +104,14 @@ Methods      Âdict GetProperties() > >            ÂPossible Errors: org.bluez.Error.InvalidArguments > > +        void SetDescriptorValue(object descriptor, array{byte} value) > + > +            Sets descriptor value, provided that it is writable. > + > +            Possible Errors: org.bluez.Error.InvalidArguments > +                    org.bluez.Error.NotAuthorized > + > + > ÂProperties   string UUID [readonly] > >            ÂUUID128 of this characteristic. > @@ -143,6 +151,26 @@ Properties     string UUID [readonly] >            ÂFriendly representation of the Characteristic Value >            Âbased on the format attribute. > > +        dict Descriptors [readonly] > + > +            List of descriptors for this characteristic. > + > +            This list contains only the descriptors not already > +            covered by other properties (v.g. Description, Format). > + > +            Each descriptor is mapped to an unique object path, > +            which is the key for the dict. > + > +            Each dict value is, in turn, a dict with at least > +            the following keys: > + > +            { > +                "UUID": string (descriptor UUID - mandatory), > +                "Value": array of bytes (raw descriptor value - > +                    Âoptional, shows up when value can be > +                    Âfetched) > +            } > + > > ÂCharacteristic Watcher hierarchy > Â=============================== > -- > 1.7.1 > > -- > 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 > In my opinion is not a good approach to allow applications(D-Bus clients) to change a behavior/value of the same characteristic descriptor. bluetoothd could manage automatically writing the client characteristic configuration and server characteristic configuration based on the registered watchers and supported client profiles. BR, Claudio. ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ý¶â^nr¡öë¨è&£ûz¹Þúzf£¢·h§~Ûÿÿïÿê_èæ+v¨þ)ßø