Commit b3332923 authored by Eric Duminil's avatar Eric Duminil
Browse files

Trying to reset config

parent d6dbd593
......@@ -76,6 +76,13 @@ namespace web_server {
void initialize() {
iotWebConf.init();
sensor_console::defineCommand("reset_config", []() {
Serial.print("Resetting config...");
iotWebConf.getSystemParameterGroup()->applyDefaultValue();
iotWebConf.saveConfig();
Serial.println("Done!");
}, F("(resets the complete IotWeb config)"));
header_template =
PSTR("<!doctype html><html lang=en>"
"<head>\n"
......
Markdown is supported
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