Add config for the 1st module

This commit is contained in:
Mathieu Maret 2017-01-15 15:13:16 +01:00
parent 7839671bf8
commit 5777094a28

View File

@ -14,17 +14,17 @@
// Enable the temperatue and pressure Sensor BMP180 // Enable the temperatue and pressure Sensor BMP180
// (CONFIG_BMP180_SDA and CONFIG_BMP180_SDA should be defined as well) // (CONFIG_BMP180_SDA and CONFIG_BMP180_SDA should be defined as well)
#define CONFIG_ENABLE_BMP180 //#define CONFIG_ENABLE_BMP180
#define CONFIG_BMP180_SDA 12 //#define CONFIG_BMP180_SDA 12
#define CONFIG_BMP180_SCL 14 //#define CONFIG_BMP180_SCL 14
#define CONFIG_ENABLE_DHT #define CONFIG_ENABLE_DHT
#define CONFIG_DHT_PIN 2 #define CONFIG_DHT_PIN 14
#define CONFIG_DHT_TYPE DHT22 #define CONFIG_DHT_TYPE DHT11
//#define CONFIG_ENABLE_DRY_SENSOR #define CONFIG_ENABLE_DRY_SENSOR
//If the dry sensor is powered by a GPIO, this GPIO could be defined here //If the dry sensor is powered by a GPIO, this GPIO could be defined here
//#define CONFIG_DRY_POWER_PIN 13 #define CONFIG_DRY_POWER_PIN 12
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485) // Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
#define CONFIG_ENABLE_POWER_SAVE #define CONFIG_ENABLE_POWER_SAVE
@ -38,7 +38,7 @@
/* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */ /* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */
//If this GPIO is LOW at boot, device will enter setup mode //If this GPIO is LOW at boot, device will enter setup mode
#define CONFIG_SETUP_GPIO 5 #define CONFIG_SETUP_GPIO 4
// Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency) // Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency)
//#define CONFIG_WEB_DELAY_MS 100 //#define CONFIG_WEB_DELAY_MS 100
@ -47,11 +47,11 @@
#define CONFIG_SAMPLING_PERIODE_MS 300000 #define CONFIG_SAMPLING_PERIODE_MS 300000
// Name of the SSID when in AP mode for configuration // Name of the SSID when in AP mode for configuration
#define CONFIG_SSID_NAME "ESPConfiguratorBureau" #define CONFIG_SSID_NAME "ESPConfigurator"
// GPIO that can be set or get by mqtt and set via http // GPIO that can be set or get by mqtt and set via http
// Should have less value than MAXSUBSCRIPTIONS // Should have less value than MAXSUBSCRIPTIONS
//#define CONFIG_CONTROLLED_GPIO {12,13} #define CONFIG_CONTROLLED_GPIO {13}
// GPIO that can be get by mqtt and http // GPIO that can be get by mqtt and http
// Pin 6 to 11 and 16 can not be used for mqtt // Pin 6 to 11 and 16 can not be used for mqtt