public abstract class MetIF
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SUCCESS |
static int |
UNRESOLVED_ERROR |
| Constructor and Description |
|---|
MetIF() |
| Modifier and Type | Method and Description |
|---|---|
int |
connect()
Initialises connection to the external Meteo station.
|
void |
disconnect()
Disconnects from the service
|
MetInfo |
getInfo()
Retrieves status identifiers from the external source.
|
MetInfo |
getLatestInfo()
Retrieves a structure with the most recently updated environment information.
|
boolean |
isConnected()
Informs whether it is connected to the Meteo Station
|
int |
updateInfo()
Updates the environment information and stores it internally.
|
public static final int SUCCESS
public static final int UNRESOLVED_ERROR
public int connect()
public boolean isConnected()
public int updateInfo()
public MetInfo getLatestInfo()
public MetInfo getInfo()
public void disconnect()