ampel-firmware.h 994 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

Eric Duminil's avatar
Eric Duminil committed
12
#ifdef AMPEL_CSV
13
14
#  include "csv_writer.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
15
#ifdef AMPEL_MQTT
16
17
#  include "mqtt.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
18
#ifdef AMPEL_LORAWAN
Eric Duminil's avatar
Eric Duminil committed
19
20
#  include "lorawan.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
21
#ifdef AMPEL_HTTP
22
23
#  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