Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
f4f75ed7
Commit
f4f75ed7
authored
May 17, 2021
by
Eric Duminil
Browse files
New config version
parent
62f272ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
f4f75ed7
...
...
@@ -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
]
=
"a0
3
"
;
const
char
config_version
[
IOTWEBCONF_CONFIG_VERSION_LENGTH
]
=
"a0
4
"
;
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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment