Thread (16 messages) 16 messages, 4 authors, 2013-05-16

Re: [RFC] bloodpressure: Add Blood Pressure API

From: Rymarkiewicz Waldemar <hidden>
Date: 2013-02-28 14:00:00

Hi Johan,
Please provide a proper commit message.
Sure. Change ID will be removed in v2.
quoted
+Methods		RegisterWatcher(object agent)
+
+			Registers a watcher to monitor blood pressure
+			measurements. This agent will be notified about
+			final pressure measurements.
+
I'm a bit confused, what's the difference between "watcher" and "agent"?
If they're the same thing just pick one term and stick to it.
Both mean the same, I guess. I've followed the description of existing 
profiles thermometer, cscp, hrp.

All of them use 'agent' term for parameter and 'watcher' in description. 
I will go for watcher it seems to be more relevant.

Methods		RegisterWatcher(object watcher)

			Registers a watcher to monitor blood pressure
			measurements. This watcher will be notified about
			final pressure measurements.

Is this ok?
quoted
+Blood Pressure Profile hierarchy
+================================
+
+Service		org.bluez
+Interface	org.bluez.BloodPressure1
+Object path	[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
+
+Properties	boolean Intermediate [readonly]
+
+			True if the device supports intermediate
+			measurement notifications.
What's the use of this property (and the interface)? I don't see how it
relates to any other APIs in this specification.
The device may support notifications of intermediate cuff pressure. That 
means during measurement it notifies the Collector what is  current 
pressure in cuff (my device sends 5 notifications per sec) until it is 
ready to send final measurements (diastolic, systolic and MAP pressure).

Based on this property an app can decide if it wants to 
EnableIntermediateMeasurement (CCC of right characteristic in configured 
then) or not.

Similarly as in thermometer api.

Thanks,
/Waldek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help