Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
f9bfce6d
Commit
f9bfce6d
authored
Dec 27, 2020
by
Eric Duminil
Browse files
HTTP -> AMPEL_HTTP
parent
d0483949
Changes
3
Hide whitespace changes
Inline
Side-by-side
ampel-firmware.h
View file @
f9bfce6d
...
...
@@ -18,7 +18,7 @@
#ifdef LORAWAN
# include "lorawan.h"
#endif
#ifdef HTTP
#ifdef
AMPEL_
HTTP
# include "web_server.h"
#endif
...
...
ampel-firmware.ino
View file @
f9bfce6d
...
...
@@ -82,7 +82,7 @@ void setup() {
Serial
.
println
(
WiFi
.
status
());
if
(
WiFi
.
status
()
==
WL_CONNECTED
)
{
#ifdef HTTP
#ifdef
AMPEL_
HTTP
web_server
::
initialize
();
#endif
...
...
@@ -186,7 +186,7 @@ void keepServicesAlive() {
MDNS
.
update
();
#endif
ntp
::
update
();
// NTP client has its own timer. It will connect to NTP server every 60s.
#ifdef HTTP
#ifdef
AMPEL_
HTTP
web_server
::
update
();
#endif
#ifdef AMPEL_MQTT
...
...
config.public.h
View file @
f9bfce6d
...
...
@@ -67,7 +67,7 @@
* available at http://local_ip, with user HTTP_USER and password HTTP_PASSWORD
*/
# define HTTP // Comment or remove this line if you want to disable HTTP webserver
# define
AMPEL_
HTTP // Comment or remove this line if you want to disable HTTP webserver
// Define empty strings in order to disable authentication, or remove the constants altogether.
# define HTTP_USER "co2ampel"
...
...
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