From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 14 Aug 2012 12:56:36 +0300 From: Johan Hedberg To: Rafal Garbat Cc: linux-bluetooth@vger.kernel.org, Santiago Carot-Nemesio Subject: Re: [PATCH v2 01/13] Heart Rate Profile API Message-ID: <20120814095636.GA7055@x220> References: <1344870497-6929-1-git-send-email-rafal.garbat@tieto.com> <1344870497-6929-2-git-send-email-rafal.garbat@tieto.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1344870497-6929-2-git-send-email-rafal.garbat@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, On Mon, Aug 13, 2012, Rafal Garbat wrote: > +Heart Rate Profile hierarchy > +============================ > + > +Service org.bluez > +Interface org.bluez.HeartRate > +Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX > + > +Methods dict GetProperties() > + > + Returns all properties for the interface. See the > + Properties section for the available properties. > + > + RegisterWatcher(object agent) > + > + Registers a watcher to monitor heart rate measurements. > + > + Possible Errors: org.bluez.Error.InvalidArguments I'm wondering if it wouldn't make more sense to have these RegisterWatcher APIs (thermometer, heart rate, others?) per-adapter instead of per-device. That would be much friendlier to applications in that they wouldn't need to separately search for paired/configured devices supporting a specific service. Moving this to be per-adapter would also mean that the first parameter of the Watcher methods would be the object path of which device is in question. Johan