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

Config update

parent b978ad30
Pipeline #5832 passed with stage
in 2 minutes and 27 seconds
...@@ -20,8 +20,9 @@ ...@@ -20,8 +20,9 @@
* WIFI * WIFI
*/ */
# define WIFI_SSID "MY_SSID" // SSID and PASSWORD need to be defined, but can be empty.
# define WIFI_PASSWORD "P4SSW0RD" # define WIFI_SSID ""
# define WIFI_PASSWORD ""
# define WIFI_TIMEOUT 30 // [s] # define WIFI_TIMEOUT 30 // [s]
/** /**
...@@ -150,6 +151,7 @@ ...@@ -150,6 +151,7 @@
*/ */
# define NTP_SERVER "pool.ntp.org" # define NTP_SERVER "pool.ntp.org"
# define UTC_OFFSET_IN_SECONDS 7200 // [s] 3600 for UTC+1, 7200 for UTC+1 and daylight saving time # define UTC_OFFSET 1 // [h] +1 for Paris/Berlin, -5 for NYC
# define DAYLIGHT_SAVING_TIME false // true in summer, false in winter
#endif #endif
...@@ -136,9 +136,9 @@ namespace web_config { ...@@ -136,9 +136,9 @@ namespace web_config {
TextTParameter<STRING_LEN> ntpServerParam = TextTParameter<STRING_LEN> ntpServerParam =
Builder<TextTParameter<STRING_LEN>>("ntp_server").label("NTP Server").defaultValue(NTP_SERVER).build(); Builder<TextTParameter<STRING_LEN>>("ntp_server").label("NTP Server").defaultValue(NTP_SERVER).build();
IntTParameter<int16_t> timeOffsetParam = Builder<IntTParameter<int16_t>>("timezone").label("Timezone").defaultValue( IntTParameter<int16_t> timeOffsetParam = Builder<IntTParameter<int16_t>>("timezone").label("Timezone").defaultValue(
(UTC_OFFSET_IN_SECONDS) / 3600).min(-23).max(23).step(1).placeholder("[h]").build(); UTC_OFFSET).min(-23).max(23).step(1).placeholder("[h]").build();
CheckboxTParameter dstParam = CheckboxTParameter dstParam = Builder<CheckboxTParameter>("dst").label("Daylight Saving Time?").defaultValue(
Builder<CheckboxTParameter>("dst").label("Daylight Saving Time?").defaultValue(false).build(); DAYLIGHT_SAVING_TIME).build();
/** /**
* LoRaWAN * LoRaWAN
......
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