Commit 110b1993 authored by Eric Duminil's avatar Eric Duminil
Browse files

Just a test

parent 66e24e75
Pipeline #5785 passed with stage
in 2 minutes and 30 seconds
Showing with 7 additions and 0 deletions
+7 -0
...@@ -165,6 +165,7 @@ namespace web_config { ...@@ -165,6 +165,7 @@ namespace web_config {
void setWifiFailCallback(void (*fail_function)()) { void setWifiFailCallback(void (*fail_function)()) {
std::function<WifiAuthInfo* ()> fail_and_return_null = [fail_function]() { std::function<WifiAuthInfo* ()> fail_and_return_null = [fail_function]() {
fail_function(); fail_function();
iotWebConf->forceApMode(true); // Will stay in AP.
return nullptr; return nullptr;
}; };
iotWebConf->setWifiConnectionFailedHandler(fail_and_return_null); iotWebConf->setWifiConnectionFailedHandler(fail_and_return_null);
...@@ -248,6 +249,12 @@ namespace web_config { ...@@ -248,6 +249,12 @@ namespace web_config {
//TODO: Remove AP Password config? //TODO: Remove AP Password config?
//TODO: Save LoRaWAN key if possible? //TODO: Save LoRaWAN key if possible?
Serial.print("WIFI ? : ");
Serial.println(ampelWifiParam.value());
iotWebConf->loadConfig();
Serial.print("WIFI ? : ");
Serial.println(ampelWifiParam.value());
iotWebConf->init(); iotWebConf->init();
//TODO: Authenticate only if required? //TODO: Authenticate only if required?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment