summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-08-02 14:05:15 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-08-02 14:05:15 +0300
commit24739efd35d19a3c919ffeed0d0cc972af46b730 (patch)
tree91f342b19b2f1588eb93577e817b4e45e54018d3 /test
parent9e097107c50ccb6885e4b80d657fe8efc6068587 (diff)
downloadbluez-24739efd35d19a3c919ffeed0d0cc972af46b730.tar.gz
test/example-gatt-client: Add more comments
This adds more comments what the example is doing.
Diffstat (limited to 'test')
-rwxr-xr-xtest/example-gatt-client3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/example-gatt-client b/test/example-gatt-client
index 4d1df2f41..b4bbaa9d9 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