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
6da82941
Commit
6da82941
authored
May 14, 2021
by
Eric Duminil
Browse files
Trying API
parent
9edbc85a
Changes
1
Show whitespace changes
Inline
Side-by-side
ampel-firmware/web_server.cpp
View file @
6da82941
...
...
@@ -67,11 +67,14 @@ namespace web_server {
}
void
initialize
()
{
Serial
.
print
(
"HELLO : "
);
Serial
.
println
(
ampel
.
sensorId
);
iotWebConf
=
new
IotWebConf
(
ampel
.
sensorId
,
&
dnsServer
,
&
http
,
HTTP_PASSWORD
);
// So that sensorId is defined.
const
int
ONBOARD_LED_PIN
=
2
;
# ifdef ESP8266
iotWebConf
->
setStatusPin
(
ONBOARD_LED_PIN
,
LOW
);
# else
iotWebConf
->
setStatusPin
(
ONBOARD_LED_PIN
,
HIGH
);
# endif
//TODO: Disable AP if WiFi connects
//TODO: Add callbacks
//TODO: Add LED effects
...
...
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