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

New config version

parent 62f272ee
......@@ -23,7 +23,7 @@ namespace web_config {
// -- Configuration specific key. The value should be modified if config structure was changed.
const char config_version[IOTWEBCONF_CONFIG_VERSION_LENGTH] = "a03";
const char config_version[IOTWEBCONF_CONFIG_VERSION_LENGTH] = "a04";
using namespace iotwebconf;
/**
......@@ -97,7 +97,7 @@ namespace web_config {
iotwebconf::ParameterGroup timeParams = iotwebconf::ParameterGroup("ntp", "Time server");
iotwebconf::TextTParameter<STRING_LEN> ntpParam = iotwebconf::Builder<iotwebconf::TextTParameter< STRING_LEN>>(
"ntp_server").label("NTP Server").build();
"ntp_server").label("NTP Server").defaultValue(NTP_SERVER).build();
iotwebconf::IntTParameter<int16_t> timeOffsetParam = iotwebconf::Builder<iotwebconf::IntTParameter<int16_t>>(
"timezone").label("Timezone").defaultValue((UTC_OFFSET_IN_SECONDS) / 3600).min(-23).max(23).step(1).build();
iotwebconf::CheckboxTParameter dstParam = iotwebconf::Builder<iotwebconf::CheckboxTParameter>("dst").label(
......
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