web_server.h 459 Bytes
Newer Older
1
2
3
4
#ifndef WEB_SERVER_H_
#define WEB_SERVER_H_
#if defined(ESP8266)
#  include <ESP8266WebServer.h>
Eric Duminil's avatar
Eric Duminil committed
5
#elif defined(ESP32)
6
7
8
9
10
11
#  include <WebServer.h>
#endif

#include "config.h"
#include "util.h"
#include "co2_sensor.h"
Eric Duminil's avatar
Eric Duminil committed
12
#include "sensor_commands.h"
Eric Duminil's avatar
Eric Duminil committed
13
#ifdef AMPEL_CSV
Eric Duminil's avatar
Eric Duminil committed
14
15
#  include "csv_writer.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
16
#ifdef AMPEL_MQTT
17
18
#  include "mqtt.h"
#endif
Eric Duminil's avatar
Eric Duminil committed
19
#ifdef AMPEL_LORAWAN
Eric Duminil's avatar
Eric Duminil committed
20
21
#  include "lorawan.h"
#endif
22
23
24
25
26
27

namespace web_server {
  void initialize();
  void update();
}
#endif