本文整理汇总了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());
}