public class TemperatureSensor extends Object implements SensorValue
Constructor and Description |
---|
TemperatureSensor(SensorValue sensorValue) |
Modifier and Type | Method and Description |
---|---|
int |
getAnalogValue()
Analog value returned by sensor, in the range of 0 to 1023.
|
int |
getStatusCode()
Six bit status code from the sensor, as a value from 0 to 63.
|
String |
temperatureValue() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEngaged, isPassive, newSensorValue
public TemperatureSensor(SensorValue sensorValue)
public int getAnalogValue()
SensorValue
getAnalogValue
in interface SensorValue
public int getStatusCode()
SensorValue
getStatusCode
in interface SensorValue
public String temperatureValue()
Copyright © 2016–2023. All rights reserved.