From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/3] test/example-gatt-client: Add more comments
Date: Tue, 2 Aug 2016 14:33:56 +0300 [thread overview]
Message-ID: <1470137637-6189-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1470137637-6189-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This adds more comments what the example is doing.
---
test/example-gatt-client | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/example-gatt-client b/test/example-gatt-client
index 4d1df2f..b4bbaa9 100755
--- a/test/example-gatt-client
+++ b/test/example-gatt-client
@@ -193,14 +193,17 @@ def main():
om = dbus.Interface(bus.get_object(BLUEZ_SERVICE_NAME, '/'), DBUS_OM_IFACE)
om.connect_to_signal('InterfacesRemoved', interfaces_removed_cb)
+ print('Getting objects...')
objects = om.GetManagedObjects()
chrcs = []
+ # List characteristics found
for path, interfaces in objects.items():
if GATT_CHRC_IFACE not in interfaces.keys():
continue
chrcs.append(path)
+ # List sevices found
for path, interfaces in objects.items():
if GATT_SERVICE_IFACE not in interfaces.keys():
continue
--
2.7.4
next prev parent reply other threads:[~2016-08-02 11:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 11:33 [PATCH BlueZ 1/3] doc/gatt-api: Mention available examples Luiz Augusto von Dentz
2016-08-02 11:33 ` Luiz Augusto von Dentz [this message]
2016-08-02 11:33 ` [PATCH BlueZ 3/3] test/example-gatt-server: Add more comments Luiz Augusto von Dentz
2016-08-04 8:09 ` [PATCH BlueZ 1/3] doc/gatt-api: Mention available examples Luiz Augusto von Dentz
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=1470137637-6189-2-git-send-email-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;
as well as URLs for NNTP newsgroup(s).