2011-07-04 17:47:45 +08:00
|
|
|
BlueZ D-Bus Thermometer API description
|
2012-10-09 19:19:48 +08:00
|
|
|
***************************************
|
2011-07-04 17:47:45 +08:00
|
|
|
|
|
|
|
Santiago Carot-Nemesio <sancane@gmail.com>
|
|
|
|
|
2012-10-09 19:19:48 +08:00
|
|
|
Health Thermometer Manager hierarchy
|
|
|
|
====================================
|
2011-07-04 17:47:45 +08:00
|
|
|
|
|
|
|
Service org.bluez
|
2012-10-09 19:19:48 +08:00
|
|
|
Interface org.bluez.ThermometerManager
|
|
|
|
Object path [variable prefix]/{hci0,hci1,...}
|
2011-07-04 17:47:45 +08:00
|
|
|
|
2012-10-09 19:19:48 +08:00
|
|
|
Methods RegisterWatcher(object agent)
|
2011-07-04 17:47:45 +08:00
|
|
|
|
|
|
|
Registers a watcher to monitor scanned measurements.
|
|
|
|
This agent will be notified about final temperature
|
|
|
|
measurements.
|
|
|
|
|
|
|
|
Possible Errors: org.bluez.Error.InvalidArguments
|
|
|
|
|
|
|
|
UnregisterWatcher(object agent)
|
|
|
|
|
|
|
|
Unregisters a watcher.
|
|
|
|
|
|
|
|
EnableIntermediateMeasurement(object agent)
|
|
|
|
|
|
|
|
Enables intermediate measurement notifications for this
|
2012-10-09 19:19:48 +08:00
|
|
|
agent. Intermediate measurements will be enabled only
|
|
|
|
for thermometers which support it.
|
2011-07-04 17:47:45 +08:00
|
|
|
|
|
|
|
Possible Errors: org.bluez.Error.InvalidArguments
|
|
|
|
|
|
|
|
DisableIntermediateMeasurement(object agent)
|
|
|
|
|
|
|
|
Disables intermediate measurement notifications for this
|
2012-10-09 19:19:48 +08:00
|
|
|
agent. It will disable notifications in thermometers
|
2011-07-04 17:47:45 +08:00
|
|
|
when the last agent removes the watcher for intermediate
|
|
|
|
measurements.
|
|
|
|
|
|
|
|
Possible Errors: org.bluez.Error.InvalidArguments
|
|
|
|
org.bluez.Error.NotFound
|
|
|
|
|
2012-10-09 19:19:48 +08:00
|
|
|
Health Thermometer Profile hierarchy
|
|
|
|
====================================
|
|
|
|
|
|
|
|
Service org.bluez
|
|
|
|
Interface org.bluez.Thermometer
|
|
|
|
Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
|
|
|
|
|
|
|
|
|
|
|
|
Methods void SetProperty(string name, variant value)
|
|
|
|
|
|
|
|
Changes the value of the specified property. Only
|
|
|
|
read-write properties can be changed. On success
|
|
|
|
this will emit a PropertyChanged signal.
|
|
|
|
|
|
|
|
Possible Errors: org.bluez.Error.InvalidArguments
|
|
|
|
|
|
|
|
dict GetProperties()
|
|
|
|
|
|
|
|
Returns all properties for the interface. See the
|
|
|
|
Properties section for the available properties.
|
|
|
|
|
2011-07-04 17:47:45 +08:00
|
|
|
Signals PropertyChanged(string name, variant value)
|
|
|
|
|
|
|
|
This signal indicates a changed value of the given
|
|
|
|
property.
|
|
|
|
|
|
|
|
Properties boolean Intermediate [readonly]
|
|
|
|
|
|
|
|
True if the thermometer supports intermediate measurement
|
|
|
|
notifications.
|
|
|
|
|
|
|
|
uint16 Interval (optional) [readwrite]
|
|
|
|
|
|
|
|
The Measurement Interval defines the time (in seconds)
|
|
|
|
between measurements. This interval is not related to
|
|
|
|
the intermediate measurements and must be defined into
|
|
|
|
a valid range. Setting it to zero means that no periodic
|
|
|
|
measurements will be taken.
|
|
|
|
|
|
|
|
uint16 Maximum (optional) [readonly]
|
|
|
|
|
|
|
|
Defines the maximum value allowed for the interval
|
|
|
|
between periodic measurements.
|
|
|
|
|
|
|
|
uint16 Minimum (optional) [readonly]
|
|
|
|
|
|
|
|
Defines the minimum value allowed for the interval
|
|
|
|
between periodic measurements.
|
|
|
|
|
|
|
|
|
|
|
|
Health Thermometer Watcher hierarchy
|
|
|
|
====================================
|
2012-10-09 19:19:48 +08:00
|
|
|
|
2011-07-04 17:47:45 +08:00
|
|
|
Service unique name
|
|
|
|
Interface org.bluez.ThermometerWatcher
|
|
|
|
Object path freely definable
|
|
|
|
|
2012-10-09 19:19:50 +08:00
|
|
|
Methods void MeasurementReceived(dict measurement)
|
|
|
|
|
|
|
|
This callback gets called when a measurement has been
|
|
|
|
scanned in the thermometer.
|
|
|
|
|
|
|
|
Measurement:
|
|
|
|
|
|
|
|
int16 Exponent:
|
|
|
|
int32 Mantissa:
|
|
|
|
|
|
|
|
Exponent and Mantissa values as
|
|
|
|
extracted from float value defined by
|
|
|
|
IEEE-11073-20601.
|
|
|
|
|
|
|
|
Measurement value is calculated as
|
|
|
|
(Mantissa) * (10^Exponent)
|
|
|
|
|
|
|
|
For special cases Exponent is set to 0
|
|
|
|
and Mantissa is set to one of following
|
|
|
|
values:
|
|
|
|
|
|
|
|
+(2^23 - 1) NaN (invalid or missing data)
|
|
|
|
-(2^23) NRes
|
|
|
|
+(2^23 - 2) +Infinity
|
|
|
|
-(2^23 - 2) -Infinity
|
|
|
|
|
|
|
|
string Unit:
|
|
|
|
|
2012-10-09 19:19:51 +08:00
|
|
|
Possible values: "celsius" or "fahrenheit"
|
2012-10-09 19:19:50 +08:00
|
|
|
|
|
|
|
uint64 Time (optional):
|
|
|
|
|
|
|
|
Time of measurement, if supported by device.
|
|
|
|
Expressed in seconds since epoch.
|
|
|
|
|
|
|
|
string Type (optional):
|
|
|
|
|
|
|
|
Only present if measurement type is known.
|
|
|
|
|
2012-10-09 19:19:51 +08:00
|
|
|
Possible values: "armpit", "body", "ear",
|
|
|
|
"finger", "intestines", "mouth",
|
|
|
|
"rectum", "toe", "tympanum"
|
2012-10-09 19:19:50 +08:00
|
|
|
|
|
|
|
string Measurement:
|
|
|
|
|
2012-10-09 19:19:51 +08:00
|
|
|
Possible values: "final" or "intermediate"
|