LTPS C++ API
light.h
1 
6 #ifndef __LLIGHT_H__
7 #define __LLIGHT_H__
8 
14 struct LightData
15 {
17  int ill;
18 
20  int status;
21 
23  const char* error;
24 };
25 
31 class Light
32 {
33 public:
34 
35  Light();
36 
37  virtual ~Light();
38 
40 
44  void getIllumination(const char *socket, LightData &ill);
45 };
46 
47 #endif
Class for ambient light sensor tibbit control (Tibbit #28)
Definition: light.h:31
Struct with data output for BH1721FVC.
Definition: light.h:14
int ill
Illumination in lx.
Definition: light.h:17
const char * error
String error if something goes wrong (NULL for success)
Definition: light.h:23
int status
Return status (EXIT_SUCCESS or EXIT_FAILURE)
Definition: light.h:20
void getIllumination(const char *socket, LightData &ill)
Get current illumination.