ESPNode
sensor_ldr.h
Go to the documentation of this file.
1 #ifdef USE_SENSOR_LDR
2 #ifndef _SENSOR_LDR_H_
3 #define _SENSOR_LDR_H_
4 /***************************************************************************************
5  ***************************************************************************************/
6 #include "base_generic.h"
7 
11 #define ANALOGINPUT
12 
19 class Sensor_LDR : public Base_Generic {
20 
21 public:
27  void begin(const char* _html_place, const char* _label);
28 
33  void loop(time_t now);
34 
41  void html_init();
42 
43 private:
44 
48  int value;
49 
53  time_t measure_starttime = 0;
54 
55 };
56 
57 #endif
58 #endif
Ein generisches Objekt für einen Sensor/Actor. Achtung: Nicht zum Einbau bestimmt,...
Definition: base_generic.h:12
void loop(time_t now)
Eine Funktion die im Hauptprogramm im loop regelmäßig aufgerufen wird. Hier als leere Funktion implem...
Definition: base_generic.cpp:30
void html_init()
Initialisierung einer Webseite Wenn sich ein Browser verbindet und die Webseite des Nodes aufruft,...
Definition: base_generic.cpp:50
void begin(const char *_html_place, const char *_label)
Legt die Startkonfiguration des Sensors fest. Die übergebenen Variabelen werden in die entsprechenden...
Definition: base_generic.cpp:9
time_t now
Eine Variable für Zeitinformationen.
Definition: main.h:115