Inherits NetOceanDirect::ManagedObject< TemperatureAPI >.
|
int | getCount (long deviceID, int% errorCode) |
|
double | getTemperature (long deviceID, int% errorCode, int index) |
|
| ManagedObject (TemperatureAPI *instance) |
|
TemperatureAPI * | GetInstance () |
|
|
TemperatureAPI * | m_Instance |
|
◆ getCount()
int Temperature::getCount |
( |
long |
deviceID, |
|
|
int% |
errorCode |
|
) |
| |
Retrieves the number of temperature sensors available on the given device.
- Parameters
-
- Returns
- the number of available temperature sensors, or 0 if an error occurred
◆ getTemperature()
double Temperature::getTemperature |
( |
long |
deviceID, |
|
|
int% |
errorCode, |
|
|
int |
index |
|
) |
| |
Retrieves the current temperature as reported by the specified temperature sensor on the given device.
- Parameters
-
[in] | deviceID | the device ID for the device to be queried (from OceanDirect::findDevices()) |
[out] | errorCode | set to 0 if successful, an OceanDirect error code (nonzero) otherwise |
[in] | index | the index of the temperature sensor to be read (should be < getCount()) |
- Returns
- the current temperature reported by the sensor, in degrees Celsius
The documentation for this class was generated from the following files: