* Thermometer D-Bus API Signature
@ 2014-11-15 4:13 Sujay Sarkhel
2014-11-19 18:55 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Sujay Sarkhel @ 2014-11-15 4:13 UTC (permalink / raw)
To: linux-bluetooth
I was looking at the Health Thermometer Watcher hierarchy under
docs/thermometer-api.txt and I guess the signature for the following
method is incorrect:
void MeasurementReceived(dict measurement)
In my opinion, it should be:
void MeasurementReceived(object device, dict measurement)
i.e. same as the one defined under heartrate-api.txt
Unfortunately, I do not have an actual thermometer or an emulator to
verify this but looking at the source code:
https://git.kernel.org/cgit/bluetooth/bluez.git/tree/profiles/thermometer/thermometer.c
for the method update_watcher (line #277), it looks that way.
Can some developer kindly verify this please? Thanks!
Regards,
Sujay Sarkhel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Thermometer D-Bus API Signature
2014-11-15 4:13 Thermometer D-Bus API Signature Sujay Sarkhel
@ 2014-11-19 18:55 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-11-19 18:55 UTC (permalink / raw)
To: Sujay Sarkhel; +Cc: linux-bluetooth
Hi Sujay,
On Friday 14 of November 2014 20:13:13 Sujay Sarkhel wrote:
> I was looking at the Health Thermometer Watcher hierarchy under
> docs/thermometer-api.txt and I guess the signature for the following
> method is incorrect:
>
> void MeasurementReceived(dict measurement)
>
> In my opinion, it should be:
>
> void MeasurementReceived(object device, dict measurement)
>
> i.e. same as the one defined under heartrate-api.txt
>
> Unfortunately, I do not have an actual thermometer or an emulator to
> verify this but looking at the source code:
> https://git.kernel.org/cgit/bluetooth/bluez.git/tree/profiles/thermometer/th
> ermometer.c for the method update_watcher (line #277), it looks that way.
>
> Can some developer kindly verify this please? Thanks!
Yes, this looks like documentation issue. Care to send a patch?:)
--
BR
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-19 18:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 4:13 Thermometer D-Bus API Signature Sujay Sarkhel
2014-11-19 18:55 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox