Class MeteorologicalStation
- java.lang.Object
-
- com.heisha.heisha_sdk.Component.EdgeComputing.MeteorologicalStation
-
public class MeteorologicalStation extends java.lang.Object
meteorological station- Version:
- 1.0
- Author:
- wmy
-
-
Constructor Summary
Constructors Constructor Description MeteorologicalStation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
environmentalCheck()
It will return a value of type byte.Anemograph
getAnemograph()
Get an instance of Anemograph.ConnStatus
getConnStatus()
Get meteorological station connection state.Hygrothermograph
getHygrothermograph()
Get an instance of Hygrothermograph.RainGauge
getRainGauge()
Get an instance of RainGauge.float
getWindDirection()
Get the wind direction value in degrees,due north is 0°, due east is 90°,void
setConnStatus(ConnStatus connStatus)
void
setWindDirection(float windDirection)
-
-
-
Method Detail
-
getConnStatus
public ConnStatus getConnStatus()
Get meteorological station connection state.- Returns:
- connection state
-
setConnStatus
public void setConnStatus(ConnStatus connStatus)
-
getWindDirection
public float getWindDirection()
Get the wind direction value in degrees,due north is 0°, due east is 90°,- Returns:
- direction °
-
setWindDirection
public void setWindDirection(float windDirection)
-
getHygrothermograph
public Hygrothermograph getHygrothermograph()
Get an instance of Hygrothermograph.- Returns:
- instance of Hygrothermograph
-
getAnemograph
public Anemograph getAnemograph()
Get an instance of Anemograph.- Returns:
- instance of Anemograph
-
getRainGauge
public RainGauge getRainGauge()
Get an instance of RainGauge.- Returns:
- instance of RainGauge
-
environmentalCheck
public byte environmentalCheck()
It will return a value of type byte.
Bit0 indicates the connection status of the MeteorologicalStation, 0:disconnected, 1:connected.
Bit1 indicates the connection status of the Anemograph, 0:disconnected, 1:connected.
Bit2 indicates the current wind speed, 0: speed < 8 m/s, 1: speed > 8 m/s.
Bit3 indicates the connection status of the RainGauge, 0:disconnected, 1:connected.
Bit4 indicates the rainfall, 0:not raining, 1:raining.
Bit5 indicates the connection status of the Hygrothermograph, 0:disconnected, 1:connected.
- Returns:
- the result of environmental check.
-
-