本文整理匯總了Java中com.beowulfe.hap.accessories.TemperatureSensor類的典型用法代碼示例。如果您正苦於以下問題:Java TemperatureSensor類的具體用法?Java TemperatureSensor怎麽用?Java TemperatureSensor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TemperatureSensor類屬於com.beowulfe.hap.accessories包,在下文中一共展示了TemperatureSensor類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AbstractTemperatureCharacteristic
import com.beowulfe.hap.accessories.TemperatureSensor; //導入依賴的package包/類
public AbstractTemperatureCharacteristic(String type, boolean isWritable, String description, TemperatureSensor sensor) {
super(type, isWritable, true, description, sensor.getMinimumTemperature(), sensor.getMaximumTemperature(),
0.1, "celsius");
}
示例2: CurrentTemperatureCharacteristic
import com.beowulfe.hap.accessories.TemperatureSensor; //導入依賴的package包/類
public CurrentTemperatureCharacteristic(TemperatureSensor thermostat) {
super("00000011-0000-1000-8000-0026BB765291", false, "Current Temperature", thermostat);
this.sensor = thermostat;
}
示例3: TemperatureSensorService
import com.beowulfe.hap.accessories.TemperatureSensor; //導入依賴的package包/類
public TemperatureSensorService(TemperatureSensor sensor) {
this(sensor, sensor.getLabel());
}