doc/gatt-api: Add authorization options for attributes 19/205019/1
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl>
Mon, 28 May 2018 08:20:51 +0000 (10:20 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 29 Apr 2019 04:12:46 +0000 (09:42 +0530)
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.

Change-Id: I11da9b9cf6982a71d66f00f1f383f71bcac1d43a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
doc/gatt-api.txt

index e9495f6..db37f3e 100755 (executable)
@@ -95,6 +95,9 @@ Methods               array{byte} ReadValue(dict options)
                        Possible options: "offset": Start offset
                                          "device": Device path (Server only)
                                          "link": Link type (Server only)
+                                         "prepare-authorize": boolean Is prepare
+                                                              authorization
+                                                              request
 
                        Possible Errors: org.bluez.Error.Failed
                                         org.bluez.Error.InProgress
@@ -260,6 +263,7 @@ Properties  string UUID [read-only]
                                "encrypt-authenticated-write"
                                "secure-read" (Server only)
                                "secure-write" (Server only)
+                               "authorize"
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
                array{object} Descriptors [read-only]
@@ -295,6 +299,9 @@ Methods             array{byte} ReadValue(dict flags)
                        Possible options: "offset": Start offset
                                          "device": Device path (Server only)
                                          "link": Link type (Server only)
+                                         "prepare-authorize": boolean Is prepare
+                                                              authorization
+                                                              request
 
                        Possible Errors: org.bluez.Error.Failed
                                         org.bluez.Error.InProgress
@@ -347,6 +354,7 @@ Properties  string UUID [read-only]
                                "encrypt-authenticated-write"
                                "secure-read" (Server Only)
                                "secure-write" (Server Only)
+                               "authorize"
 
 GATT Profile hierarchy
 =====================