ampel-firmware.h 844 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef AMPEL_H_INCLUDED
#define AMPEL_H_INCLUDED
/*****************************************************************
 * Libraries                                                     *
 *****************************************************************/
#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

#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)
26
//allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
27
28
29
30
31
32
33
34
35
#  include <ESP8266mDNS.h>
#elif defined(ESP32)
#  include <ESPmDNS.h>
#endif

void keepServicesAlive();
void checkFlashButton();

#endif