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
......@@ -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?
......
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