From d954883d199c54a3b54c81947358ea4d3a4cc7d9 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sun, 1 Jan 2017 23:40:13 +0100 Subject: [PATCH] Add bureau conf --- WifiControlSensor/config_device.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/WifiControlSensor/config_device.h b/WifiControlSensor/config_device.h index f7bdb37..c727a56 100644 --- a/WifiControlSensor/config_device.h +++ b/WifiControlSensor/config_device.h @@ -19,7 +19,8 @@ #define CONFIG_BMP180_SCL 14 #define CONFIG_ENABLE_DHT -#define CONFIG_DHT_PIN 5 +#define CONFIG_DHT_PIN 2 +#define CONFIG_DHT_TYPE DHT22 //#define CONFIG_ENABLE_DRY_SENSOR //If the dry sensor is powered by a GPIO, this GPIO could be defined here @@ -37,24 +38,24 @@ /* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */ //If this GPIO is LOW at boot, device will enter setup mode -//#define CONFIG_SETUP_GPIO 3 +#define CONFIG_SETUP_GPIO 5 // Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency) //#define CONFIG_WEB_DELAY_MS 100 // Get sensors value every X ms -//#define CONFIG_SAMPLING_PERIODE_MS 60000 +#define CONFIG_SAMPLING_PERIODE_MS 300000 // Name of the SSID when in AP mode for configuration -//#define CONFIG_SSID_NAME "ESPConfigurator" +#define CONFIG_SSID_NAME "ESPConfiguratorBureau" // GPIO that can be set or get by mqtt and set via http // Should have less value than MAXSUBSCRIPTIONS -#define CONFIG_CONTROLLED_GPIO {2,13} +//#define CONFIG_CONTROLLED_GPIO {12,13} // GPIO that can be get by mqtt and http // Pin 6 to 11 and 16 can not be used for mqtt -#define CONFIG_OBSERVED_GPIO {5} +//#define CONFIG_OBSERVED_GPIO {5} // GPIO used in PWM //#define CONFIG_CONTROLLED_PWM {}