LTPS C++ API
temperature.h
1 
6 #ifndef __LTEMPERATURE_H__
7 #define __LTEMPERATURE_H__
8 
14 struct TempData
15 {
17  float temp;
18 
20  int status;
21 
23  const char* error;
24 };
25 
32 {
33 public:
34 
35  Temperature();
36 
37  virtual ~Temperature();
38 
40 
44  void getTemperature(const char *socket, TempData &temp);
45 };
46 
47 #endif
Class for ambient temperature sensor tibbit control (Tibbit #29)
Definition: temperature.h:31
const char * error
String error if something goes wrong (NULL for success)
Definition: temperature.h:23
int status
Return status (EXIT_SUCCESS or EXIT_FAILURE)
Definition: temperature.h:20
Struct with data output for MCP9808.
Definition: temperature.h:14
float temp
Temperature in C degrees.
Definition: temperature.h:17
void getTemperature(const char *socket, TempData &temp)
Get current temperature in Celsius degrees.