gatt-api: Add error code ReadValue/WriteValue
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 25 Aug 2022 19:46:38 +0000 (12:46 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
This allows application to return error codes in the range allowed by
the spec:

 'GATT - Section 4.9.5:

  Application Error 0x80 – 0x9F Application error code defined by a
  higher layer specification.'

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
doc/gatt-api.txt

index 149203d..4e37ed6 100755 (executable)
@@ -89,13 +89,15 @@ Methods             array{byte} ReadValue(dict options)
                                          "mtu": Exchanged MTU (Server only)
                                          "device": Object Device (Server only)
 
-                       Possible Errors: org.bluez.Error.Failed
+                       Possible Errors: org.bluez.Error.Failed(string ecode)
                                         org.bluez.Error.InProgress
                                         org.bluez.Error.NotPermitted
                                         org.bluez.Error.NotAuthorized
                                         org.bluez.Error.InvalidOffset
                                         org.bluez.Error.NotSupported
 
+                       Possible Error Code: string 0x80 - 0x9f
+
                void WriteValue(array{byte} value, dict options)
 
                        Issues a request to write the value of the
@@ -115,13 +117,15 @@ Methods           array{byte} ReadValue(dict options)
                                                               authorization
                                                               request
 
-                       Possible Errors: org.bluez.Error.Failed
+                       Possible Errors: org.bluez.Error.Failed(string ecode)
                                         org.bluez.Error.InProgress
                                         org.bluez.Error.NotPermitted
                                         org.bluez.Error.InvalidValueLength
                                         org.bluez.Error.NotAuthorized
                                         org.bluez.Error.NotSupported
 
+                       Possible Error Code: string 0x80 - 0x9f
+
                fd, uint16 AcquireWrite(dict options) [optional]
 
                        Acquire file descriptor and MTU for writing. Only