ampel-firmware.h 977 Bytes
Newer Older
1
2
3
4
5
#ifndef AMPEL_H_INCLUDED
#define AMPEL_H_INCLUDED
/*****************************************************************
 * Libraries                                                     *
 *****************************************************************/
Eric Duminil's avatar
Notes    
Eric Duminil committed
6
//TODO: check header dependencies, and simplify if possible.
7
8
9
10
#include "config.h"
#ifndef MEASUREMENT_TIMESTEP
#  error Missing config.h file. Please copy config.example.h to config.h.
#endif
11
12
13
14

#ifdef CSV_WRITER
#  include "csv_writer.h"
#endif
15
16
17
#ifdef MQTT
#  include "mqtt.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
18
19
20
#ifdef LORAWAN
#  include "lorawan.h"
#endif
21
22
23
#ifdef HTTP
#  include "web_server.h"
#endif
24
25
26
27
28
29
30
31

#include "util.h"
#include "wifi_util.h"
#include "co2_sensor.h"

#include "led_effects.h"

#if defined(ESP8266)
32
//allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
33
34
35
36
37
38
39
40
41
#  include <ESP8266mDNS.h>
#elif defined(ESP32)
#  include <ESPmDNS.h>
#endif

void keepServicesAlive();
void checkFlashButton();

#endif