From 93f4607f6e01c8067d3a8f7bb03ba8a9d37ab2ca Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Mon, 23 Jul 2012 11:55:18 -0400 Subject: [PATCH] attrib-api: Update Watcher interface methods 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 4f7dd405e..4b392b953 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(). -- 2.47.3