public class SKAmbientTemperatureData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected float |
temperature |
sensorType, timestamp
Constructor and Description |
---|
SKAmbientTemperatureData(long timestamp,
float temperature)
Initialize Ambient Temperature data instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataInCSV()
Get the Ambient Temperature sensor data in csv format
|
float |
getTemperature()
Get only the Ambient Temperature
|
getSensorType, getTimestamp, toString
public SKAmbientTemperatureData(long timestamp, float temperature)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)temperature
- In degrees Celsiuspublic java.lang.String getDataInCSV()
public float getTemperature()