ampel-firmware.h 950 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
11
12
13
#include "config.h"
#ifndef MEASUREMENT_TIMESTEP
#  error Missing config.h file. Please copy config.example.h to config.h.
#endif
#ifdef MQTT
#  include "mqtt.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
14
15
16
#ifdef LORAWAN
#  include "lorawan.h"
#endif
17
18
19
20
21
22
23
24
25
26
27
28
29

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

#ifdef HTTP
#  include "web_server.h"
#endif

#include "led_effects.h"
#include "csv_writer.h"

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

void keepServicesAlive();
void checkFlashButton();

#endif