added corect values to config.public.h

This commit is contained in:
Jens Noack 2021-05-10 08:37:25 +02:00
parent fd014e1cc7
commit df9499bcdb

View file

@ -1,6 +1,8 @@
#ifndef CONFIG_H_INCLUDED #ifndef CONFIG_H_INCLUDED
# define CONFIG_H_INCLUDED # define CONFIG_H_INCLUDED
#define buttonPin 0
// This file is a config template, and can be copied to config.h. Please don't save any important password in this template. // This file is a config template, and can be copied to config.h. Please don't save any important password in this template.
/** /**
@ -18,8 +20,8 @@
* WIFI * WIFI
*/ */
# define WIFI_SSID "MY_SSID" # define WIFI_SSID ""
# define WIFI_PASSWORD "P4SSW0RD" # define WIFI_PASSWORD ""
# define WIFI_TIMEOUT 30 // [s] # define WIFI_TIMEOUT 30 // [s]
/** /**
@ -28,7 +30,7 @@
// How often should measurement be performed, and displayed? // How often should measurement be performed, and displayed?
//NOTE: SCD30 timer does not seem to be very precise. Variations may occur. //NOTE: SCD30 timer does not seem to be very precise. Variations may occur.
# define MEASUREMENT_TIMESTEP 60 // [s] Value between 2 and 1800 (range for SCD30 sensor) # define MEASUREMENT_TIMESTEP 10 // [s] Value between 2 and 1800 (range for SCD30 sensor)
// How often should measurements be appended to CSV ? // How often should measurements be appended to CSV ?
// Probably a good idea to use a multiple of MEASUREMENT_TIMESTEP, so that averages can be calculated // Probably a good idea to use a multiple of MEASUREMENT_TIMESTEP, so that averages can be calculated
@ -43,7 +45,7 @@
// Altitude above sea level // Altitude above sea level
// Used for CO2 calibration // Used for CO2 calibration
// here: Stuttgart, Schellingstr. 24. (Source: Google Earth) // here: Stuttgart, Schellingstr. 24. (Source: Google Earth)
# define ALTITUDE_ABOVE_SEA_LEVEL 260 // [m] # define ALTITUDE_ABOVE_SEA_LEVEL 680 // [m]
// The reference CO2 concentration has to be within the range 400 ppm ≤ cref(CO2) ≤ 2000 ppm. // The reference CO2 concentration has to be within the range 400 ppm ≤ cref(CO2) ≤ 2000 ppm.
// Used for CO2 calibration // Used for CO2 calibration
@ -52,17 +54,16 @@
// Should the sensor try to calibrate itself? // Should the sensor try to calibrate itself?
// Sensirion recommends 7 days of continuous readings with at least 1 hour a day of 'fresh air' for self-calibration to complete. // Sensirion recommends 7 days of continuous readings with at least 1 hour a day of 'fresh air' for self-calibration to complete.
# define AUTO_CALIBRATE_SENSOR true // [true / false] # define AUTO_CALIBRATE_SENSOR false // [true / false]
/** /**
* LEDs * LEDs
*/ */
// LED brightness, which can vary between min and max brightness ("LED breathing") // LED brightness, which can vary between min and max brightness ("LED breathing")
// MAX_BRIGHTNESS must be defined, and should be between 0 and 255. // max_brightness should be between 0 and 255.
# define MAX_BRIGHTNESS 255 // min_brightness should be between 0 and max_brightness
// MIN_BRIGHTNESS, if defined, should be between 0 and MAX_BRIGHTNESS - 1 # define MAX_BRIGHTNESS 128
// If MIN_BRIGHTNESS is not set, or if it is set to MAX_BRIGHTNESS, breathing is disabled.
# define MIN_BRIGHTNESS 60 # define MIN_BRIGHTNESS 60
/** /**
@ -71,8 +72,8 @@
*/ */
// Define empty strings in order to disable authentication, or remove the constants altogether. // Define empty strings in order to disable authentication, or remove the constants altogether.
# define HTTP_USER "co2ampel" # define HTTP_USER ""
# define HTTP_PASSWORD "my_password" # define HTTP_PASSWORD ""
/** /**
* MQTT * MQTT
@ -144,11 +145,11 @@
*/ */
# 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_IN_SECONDS 3600 // [s] 3600 for UTC+1
/** /**
* Others * Others
*/ */
# define BAUDS 115200 // Transmission rate # define BAUDS 115200 // Transmission rate
#endif // CONFIG_H_INCLUDED #endif