2016-03-30 00:44:37 +02:00
|
|
|
#pragma once
|
|
|
|
#include "config_device.h"
|
|
|
|
|
|
|
|
/* DO NOT CHANGE THIS FILE */
|
|
|
|
/* Contains values that SHOULD be defined to have the sketch working */
|
2016-03-30 00:49:57 +02:00
|
|
|
/* Modify value in config_device.h instead */
|
2016-03-30 00:44:37 +02:00
|
|
|
|
|
|
|
#ifndef CONFIG_WEB_DELAY_MS
|
|
|
|
#define CONFIG_WEB_DELAY_MS 100
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CONFIG_SAMPLING_PERIODE_MS
|
|
|
|
#define CONFIG_SAMPLING_PERIODE_MS 60000
|
|
|
|
#endif
|
|
|
|
|
2016-04-10 00:08:37 +02:00
|
|
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
|
|
|
|
#error "When enabling BMP180, you should configure SDA pin"
|
2016-04-14 01:16:19 +02:00
|
|
|
#elif !defined(CONFIG_ENABLE_BMP180)
|
|
|
|
#define CONFIG_BMP180_SDA 0
|
2016-03-30 00:44:37 +02:00
|
|
|
#endif
|
2016-04-10 00:08:37 +02:00
|
|
|
|
|
|
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
|
|
|
|
#error "When enabling BMP180, you should configure SLC pin"
|
2016-04-14 01:16:19 +02:00
|
|
|
#elif !defined(CONFIG_ENABLE_BMP180)
|
|
|
|
#define CONFIG_BMP180_SCL 0
|
2016-03-30 00:44:37 +02:00
|
|
|
#endif
|
2016-04-07 15:26:01 +02:00
|
|
|
|
2016-06-02 01:31:57 +02:00
|
|
|
#if defined(CONFIG_ENABLE_DHT) && !defined(CONFIG_DHT_PIN)
|
2016-04-10 00:08:37 +02:00
|
|
|
#error "When enabling DHT, you should configure SDA pin"
|
2016-04-14 01:16:19 +02:00
|
|
|
#elif !defined(CONFIG_ENABLE_DHT)
|
|
|
|
#define CONFIG_DHT_PIN 0
|
2016-03-30 00:44:37 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-02 01:31:57 +02:00
|
|
|
#ifndef CONFIG_DRY_POWER_PIN
|
|
|
|
#define CONFIG_DRY_POWER_PIN -1
|
|
|
|
#endif
|
|
|
|
|
2016-04-07 01:59:20 +02:00
|
|
|
#ifndef CONFIG_SSID_NAME
|
2016-03-30 00:44:37 +02:00
|
|
|
#define CONFIG_SSID_NAME "ESPConfigurator"
|
2016-04-07 01:59:20 +02:00
|
|
|
#endif
|
2016-03-30 00:44:37 +02:00
|
|
|
|
2016-04-07 01:59:20 +02:00
|
|
|
#ifndef CONFIG_MQTT_CONTROLLED_GPIO
|
2016-04-10 00:08:37 +02:00
|
|
|
#define CONFIG_MQTT_CONTROLLED_GPIO {}
|
2016-04-07 01:59:20 +02:00
|
|
|
#endif
|
2016-03-30 00:44:37 +02:00
|
|
|
|
2016-04-07 01:59:20 +02:00
|
|
|
#ifndef CONFIG_EEPROM_SIZE
|
2016-03-30 00:49:57 +02:00
|
|
|
#define CONFIG_EEPROM_SIZE 256
|
2016-04-07 01:59:20 +02:00
|
|
|
#endif
|
2016-06-18 01:49:29 +02:00
|
|
|
|
|
|
|
#ifndef CONFIG_SETUP_GPIO
|
|
|
|
#define CONFIG_SETUP_GPIO 3
|
|
|
|
#endif
|
2016-07-09 14:35:55 +02:00
|
|
|
|
|
|
|
#ifndef CONFIG_DHT_TYPE
|
|
|
|
#define CONFIG_DHT_TYPE DHT11
|
|
|
|
#endif
|