Return-Path: MIME-Version: 1.0 In-Reply-To: <20180525073857.17860-1-grzegorz.kolodziejczyk@codecoup.pl> References: <20180525073857.17860-1-grzegorz.kolodziejczyk@codecoup.pl> From: Luiz Augusto von Dentz Date: Fri, 25 May 2018 10:52:09 +0300 Message-ID: Subject: Re: [PATCH BlueZ v3 1/4] doc/gatt-api: Add authorization options for attributes To: Grzegorz Kolodziejczyk Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Grzegorz, On Fri, May 25, 2018 at 10:38 AM, Grzegorz Kolodziejczyk wrote: > This patch adds authorization property for attributes and prepare write > request for authorization option for write request. This is require to > handle correctly prepare writes, which may response with insufficient > authorization error. > --- > doc/gatt-api.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt > index 0f1cc9029..914fc7031 100644 > --- a/doc/gatt-api.txt > +++ b/doc/gatt-api.txt > @@ -85,6 +85,9 @@ Methods array{byte} ReadValue(dict options) > Possible options: "offset": Start offset > "device": Device path (Server only) > "link": Link type (Server only) > + "prep-authorize": boolean Is prepare > + authorization > + request > > Possible Errors: org.bluez.Error.Failed > org.bluez.Error.InProgress > @@ -251,6 +254,12 @@ Properties string UUID [read-only] > "secure-read" (Server only) > "secure-write" (Server only) > > + boolean Authorize [read-only, optional] (Server only) > + > + True, if authorization is required for attribute > + operations. By default this valuie is set to false for > + attribute. One of the things we discussed yesterday was to move to Flags as authorization, that way it is not even possible to set it to false. > Characteristic Descriptors hierarchy > ==================================== > > @@ -284,6 +293,9 @@ Methods array{byte} ReadValue(dict flags) > Possible options: "offset": Start offset > "device": Device path (Server only) > "link": Link type (Server only) > + "prep-authorize": boolean Is prepare > + authorization > + request > > Possible Errors: org.bluez.Error.Failed > org.bluez.Error.InProgress > @@ -322,6 +334,12 @@ Properties string UUID [read-only] > "secure-read" (Server Only) > "secure-write" (Server Only) > > + boolean Authorize [read-only, optional] (Server only) > + > + True, if authorization is required for attribute > + operations. By default this valuie is set to false for > + attribute. > + > GATT Profile hierarchy > ===================== > > -- > 2.13.6 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Luiz Augusto von Dentz