Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
bba35e48
Commit
bba35e48
authored
Feb 08, 2022
by
Eric Duminil
Browse files
Now compiles again
parent
4ea6dfa2
Changes
3
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
bba35e48
#include
"web_config.h"
#if defined(ESP8266)
# include <ESP8266WebServer.h>
#elif defined(ESP32)
# include <WebServer.h>
#endif
#include
"config.h"
#include
"util.h"
#include
"sensor_console.h"
#include
<IotWebConf.h>
#include
<IotWebConfOptionalGroup.h>
namespace
config
{
using
namespace
iotwebconf
;
TextTParameter
<
STRING_LEN
>
stringParam
=
...
...
ampel-firmware/web_config.h
View file @
bba35e48
#ifndef AMPEL_WEB_CONFIG_H_
#define AMPEL_WEB_CONFIG_H_
#define STRING_LEN 64
#if defined(ESP8266)
# include <ESP8266WebServer.h>
#elif defined(ESP32)
# include <WebServer.h>
#endif
#define STRING_LEN 64
#include
"config.h"
#include
<IotWebConf.h>
#include
<IotWebConfTParameter.h>
#include
<IotWebConfOptionalGroup.h>
#include
"util.h"
//#include "sensor_console.h"
namespace
config
{
extern
iotwebconf
::
TextTParameter
<
STRING_LEN
>
stringParam
;
...
...
ampel-firmware/web_server.cpp
View file @
bba35e48
#include
"web_server.h"
#if defined(ESP8266)
# include <ESP8266WebServer.h>
# include <ESP8266mDNS.h> //allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
#elif defined(ESP32)
# include <WebServer.h>
# include <ESPmDNS.h>
#endif
#include
"web_config.h"
#include
"config.h"
#include
"util.h"
...
...
@@ -24,9 +16,17 @@
#ifdef AMPEL_LORAWAN
# include "lorawan.h"
#endif
#include
<IotWebConf.h>
#include
<IotWebConfUsing.h>
// This loads aliases for easier class names.
#include
<IotWebConfTParameter.h>
#if defined(ESP8266)
# include <ESP8266WebServer.h>
# include <ESP8266mDNS.h> //allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
#elif defined(ESP32)
# include <WebServer.h>
# include <ESPmDNS.h>
#endif
namespace
config
{
// Values should be defined in config.h
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment