org.bluez.ThermometerWatcher1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluez-dbus-osgi Show documentation
Show all versions of bluez-dbus-osgi Show documentation
Java native bluetooth library which uses bluez via dbus (linux only).
This is the OSGi compliant bundle of all required libraries in one bundle.
package org.bluez;
import java.util.Map;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.types.Variant;
/**
* File generated - 2020-06-18.
* Based on bluez Documentation: thermometer-api.txt.
*
* Service: unique name
* Interface: org.bluez.ThermometerWatcher1
*
* Object path:
* freely definable
*
*/
public interface ThermometerWatcher1 extends DBusInterface {
/**
* From bluez documentation:
*
* 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:
*
* Possible values: "celsius" or
* "fahrenheit"
*
* 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.
*
* Possible values: "armpit", "body",
* "ear", "finger", "intestines",
* "mouth", "rectum", "toe",
* "tympanum"
*
* string Measurement:
*
* Possible values: "final" or
* "intermediate"
*
* @param _measurement measurement
*/
void MeasurementReceived(Map> _measurement);
}