Commit 054e32aa authored by Eric Duminil's avatar Eric Duminil
Browse files

Config setter from console

parent 63f78eea
......@@ -71,6 +71,14 @@ namespace web_config {
Serial.println(F("Done!"));
}, F("(resets the complete IotWeb config)"));
sensor_console::defineStringCommand("conf", [](char *new_value) {
Serial.print(F("Setting stringParam to "));
Serial.println(new_value);
strncpy(config::stringParam.value(), new_value, STRING_LEN);
Serial.println(F("Done"));
iotWebConf->saveConfig();
}, F("some_text (config setter)"));
#if !defined(AMPEL_WIFI)
iotWebConf->loadConfig();
return;
......
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