Thread (10 messages) 10 messages, 2 authors, 2012-07-24

[RFC BlueZ 5/7] attrib-api: Update Watcher interface methods

From: Anderson Lizardo <hidden>
Date: 2012-07-23 15:55:18
Subsystem: the rest · Maintainer: Linus Torvalds

There are now two different methods for the interface. Only one method
is called, based on the "raw" setting being enabled or not when
registering the watcher.
---
 doc/attribute-api.txt |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/doc/attribute-api.txt b/doc/attribute-api.txt
index 4f7dd40..4b392b9 100644
--- a/doc/attribute-api.txt
+++ b/doc/attribute-api.txt
@@ -105,6 +105,18 @@ Service		unique name
 Interface	org.bluez.Watcher
 Object path	freely definable
 
-Methods		void ValueChanged(object characteristic, array{byte})
+Methods		void ValueChanged(object characteristic, dict value)
 
-			New raw value of the Characteristic Value attribute.
+			The value dictionary contains the new value for the
+			Characteristic. The format is the same returned by
+			Characteristic.GetValue().
+
+			This method is only called when the "raw" setting is
+			disabled on Adapter.RegisterCharacteristicsWatcher().
+
+		void RawValueChanged(object characteristic, array{byte} value)
+
+			New raw Characteristic value.
+
+			This method is only called when the "raw" setting is
+			enabled on Adapter.RegisterCharacteristicsWatcher().
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help