Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
7f4a849a
Commit
7f4a849a
authored
May 16, 2021
by
Eric Duminil
Browse files
Connection handler only starts after setup
parent
e0314533
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
7f4a849a
...
...
@@ -149,13 +149,6 @@ namespace web_config {
void
initialize
()
{
iotWebConf
=
new
IotWebConf
(
ampel
.
sensorId
,
&
dnsServer
,
&
http
,
HTTP_PASSWORD
,
config_version
);
iotWebConf
->
setWifiConnectionHandler
([](
const
char
*
ssid
,
const
char
*
password
)
{
Serial
.
println
(
"LETS TRY TO CONNECT NOW!"
);
WiFi
.
begin
(
ssid
,
password
);
delay
(
10000
);
Serial
.
println
(
"WIFI DONE?"
);
});
serviceParams
.
addItem
(
&
ampelWifiParam
);
serviceParams
.
addItem
(
&
ampelMQTTParam
);
serviceParams
.
addItem
(
&
ampelCSVParam
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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