1
BlueZ D-Bus Thermometer API description
2
***************************************
4
Santiago Carot-Nemesio <sancane@gmail.com>
6
Health Thermometer Manager hierarchy
7
====================================
10
Interface org.bluez.ThermometerManager1
11
Object path [variable prefix]/{hci0,hci1,...}
13
Methods RegisterWatcher(object agent)
15
Registers a watcher to monitor scanned measurements.
16
This agent will be notified about final temperature
19
Possible Errors: org.bluez.Error.InvalidArguments
21
UnregisterWatcher(object agent)
23
Unregisters a watcher.
25
EnableIntermediateMeasurement(object agent)
27
Enables intermediate measurement notifications
28
for this agent. Intermediate measurements will
29
be enabled only for thermometers which support it.
31
Possible Errors: org.bluez.Error.InvalidArguments
33
DisableIntermediateMeasurement(object agent)
35
Disables intermediate measurement notifications
36
for this agent. It will disable notifications in
37
thermometers when the last agent removes the
38
watcher for intermediate measurements.
40
Possible Errors: org.bluez.Error.InvalidArguments
41
org.bluez.Error.NotFound
43
Health Thermometer Profile hierarchy
44
====================================
47
Interface org.bluez.Thermometer1
48
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
51
Properties boolean Intermediate [readonly]
53
True if the thermometer supports intermediate
54
measurement notifications.
56
uint16 Interval (optional) [readwrite]
58
The Measurement Interval defines the time (in
59
seconds) between measurements. This interval is
60
not related to the intermediate measurements and
61
must be defined into a valid range. Setting it
62
to zero means that no periodic measurements will
65
uint16 Maximum (optional) [readonly]
67
Defines the maximum value allowed for the interval
68
between periodic measurements.
70
uint16 Minimum (optional) [readonly]
72
Defines the minimum value allowed for the interval
73
between periodic measurements.
76
Health Thermometer Watcher hierarchy
77
====================================
80
Interface org.bluez.ThermometerWatcher1
81
Object path freely definable
83
Methods void MeasurementReceived(dict measurement)
85
This callback gets called when a measurement has been
86
scanned in the thermometer.
93
Exponent and Mantissa values as
94
extracted from float value defined by
97
Measurement value is calculated as
98
(Mantissa) * (10^Exponent)
100
For special cases Exponent is
101
set to 0 and Mantissa is set to
102
one of following values:
104
+(2^23 - 1) NaN (invalid or
107
+(2^23 - 2) +Infinity
108
-(2^23 - 2) -Infinity
112
Possible values: "celsius" or
115
uint64 Time (optional):
117
Time of measurement, if
119
Expressed in seconds since epoch.
121
string Type (optional):
123
Only present if measurement type
126
Possible values: "armpit", "body",
127
"ear", "finger", "intestines",
128
"mouth", "rectum", "toe",
133
Possible values: "final" or