ampel-firmware.h 782 Bytes
Newer Older
1
2
3
4
5
#ifndef AMPEL_H_INCLUDED
#define AMPEL_H_INCLUDED
/*****************************************************************
 * Libraries                                                     *
 *****************************************************************/
Eric Duminil's avatar
Eric Duminil committed
6
7
8
9
10
11
12
13
14

#ifdef AMPEL_WIFI
#  include "wifi_util.h"
#  ifdef AMPEL_MQTT
#    include "mqtt.h"
#  endif
#  ifdef AMPEL_HTTP
#    include "web_server.h"
#  endif
15
16
17
18
19
20
#  if defined(ESP8266)
     //allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
#    include <ESP8266mDNS.h>
#  elif defined(ESP32)
#    include <ESPmDNS.h>
#  endif
21
#endif
Eric Duminil's avatar
Eric Duminil committed
22

Eric Duminil's avatar
Eric Duminil committed
23
#ifdef AMPEL_LORAWAN
Eric Duminil's avatar
Eric Duminil committed
24
25
#  include "lorawan.h"
#endif
26
27

#include "util.h"
28
#include "sensor_console.h"
29
30
31
32
#include "co2_sensor.h"
#include "led_effects.h"

#endif