From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 1/2] gatt-api: Add error code ReadValue/WriteValue
Date: Thu, 25 Aug 2022 13:07:57 -0700 [thread overview]
Message-ID: <20220825200758.1645136-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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.'
---
doc/gatt-api.txt | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt
index af0aa761d0a2..5042c54704e4 100644
--- a/doc/gatt-api.txt
+++ b/doc/gatt-api.txt
@@ -79,13 +79,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
@@ -105,13 +107,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
--
2.37.2
next reply other threads:[~2022-08-25 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 20:07 Luiz Augusto von Dentz [this message]
2022-08-25 20:07 ` [PATCH BlueZ 2/2] gatt: Parse error message Luiz Augusto von Dentz
2022-08-25 21:09 ` [BlueZ,1/2] gatt-api: Add error code ReadValue/WriteValue bluez.test.bot
2022-08-29 19:50 ` [PATCH BlueZ 1/2] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220825200758.1645136-1-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox