Compare commits

...

4 Commits

Author SHA1 Message Date
Mathieu Maret
5c3e3aac3a Correct SETUP gpio as already used by sensor 2017-04-08 14:10:53 +02:00
Mathieu Maret
6141d812ad Correct AP SSID name 2017-04-08 14:10:53 +02:00
Mathieu Maret
6c18f68181 Use GPIO5 as sensor 2017-04-08 14:10:53 +02:00
Mathieu Maret
58333280c6 Add config file for 2nd device 2017-04-08 14:10:53 +02:00

View File

@ -14,13 +14,12 @@
// 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 5
#define CONFIG_DHT_TYPE DHT22
//#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
@ -38,7 +37,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 3
// 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,15 +46,15 @@
#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 {2}
// 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
//#define CONFIG_OBSERVED_GPIO {5} #define CONFIG_OBSERVED_GPIO {5}
// GPIO used in PWM // GPIO used in PWM
//#define CONFIG_CONTROLLED_PWM {} //#define CONFIG_CONTROLLED_PWM {}