|
NXT C++ Bluetooth Library | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Sensor | +--Temperaturein temperature.h
Class for RCX temperature sensor
| Fields inherited from class Sensor |
|
| Constructor Summary | |
Temperature( Sensor_port port, Connection* connection, Temp_mode mode = CELSIUS )
Constructor for the temperature sensor (default TEMP_MODE is celsius) |
|
~Temperature()
|
|
| Method Summary | |
string |
print()
Get the sensor reading as a string (init method will be called if the sensor has not been initialized) |
| Methods inherited from class Sensor |
init, read, read, print, set, get_port, get_mode, |
| Constructor Detail |
public Temperature( Sensor_port port, Connection* connection, Temp_mode mode = CELSIUS );
port - [which sensor port to use]
*connection - [attach a connection]
mode - [set the TEMP mode to either CELSIUS or FAHRENHEIT (default is CELSIUS)]public ~Temperature();
| Method Detail |
public string print();
|
NXT C++ Bluetooth Library | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||