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
110b1993
Commit
110b1993
authored
Feb 10, 2022
by
Eric Duminil
Browse files
Just a test
parent
66e24e75
Pipeline
#5785
passed with stage
in 2 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
110b1993
...
...
@@ -165,6 +165,7 @@ namespace web_config {
void
setWifiFailCallback
(
void
(
*
fail_function
)())
{
std
::
function
<
WifiAuthInfo
*
()
>
fail_and_return_null
=
[
fail_function
]()
{
fail_function
();
iotWebConf
->
forceApMode
(
true
);
// Will stay in AP.
return
nullptr
;
};
iotWebConf
->
setWifiConnectionFailedHandler
(
fail_and_return_null
);
...
...
@@ -248,6 +249,12 @@ namespace web_config {
//TODO: Remove AP Password config?
//TODO: Save LoRaWAN key if possible?
Serial
.
print
(
"WIFI ? : "
);
Serial
.
println
(
ampelWifiParam
.
value
());
iotWebConf
->
loadConfig
();
Serial
.
print
(
"WIFI ? : "
);
Serial
.
println
(
ampelWifiParam
.
value
());
iotWebConf
->
init
();
//TODO: Authenticate only if required?
...
...
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