/* * config.h * * ESP8266 / ESP32 Environmental Sensor * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice * you can do whatever you want with this stuff. If we meet some day, and you * think this stuff is worth it, you can buy me a beer in return. Thomas Buck * ---------------------------------------------------------------------------- */ #ifndef __ESP_ENV_CONFIG__ #define __ESP_ENV_CONFIG__ // Sketch version const char* esp_relais_version = "0.1.0"; // location of sensor, used in DB and hostname //const char* sensor_location = "livingroom"; //const char* sensor_location = "bedroom"; const char* sensor_location = "bathroom"; //const char* sensor_location = "kitchen"; //const char* sensor_location = "hallway"; //const char* sensor_location = "tent"; //const char* sensor_location = "storage"; //const char* sensor_location = "greenhouse"; //const char* sensor_location = "test"; #define SENSOR_HOSTNAME_PREFIX "relais-" // WiFi AP settings const char* ssid = "INSERT_SSID_HERE"; const char* password = "INSERT_PASSPHRASE_HERE"; // MQTT settings #define MQTT_HOST "10.23.42.14" #define MQTT_PORT 1883 // InfluxDB settings #define INFLUXDB_HOST "10.23.42.14" #define INFLUXDB_PORT 8086 #define INFLUXDB_DATABASE "roomsensorsdiy" // feature selection //#define ENABLE_MQTT //#define ENABLE_INFLUXDB_LOGGING #define ENABLE_NTP // all given in milliseconds #define SERVER_HANDLE_INTERVAL 10 #define AUTO_TIMING_INTERVAL (15UL * 60UL * 1000UL) #define LED_BLINK_INTERVAL (2 * 1000) #define LED_INIT_BLINK_INTERVAL 500 #define LED_CONNECT_BLINK_INTERVAL 250 #define LED_ERROR_BLINK_INTERVAL 100 #if defined(ARDUINO_ARCH_ESP8266) #define RELAIS_COUNT 4 #define ESP_PLATFORM_NAME "ESP8266" #elif defined(ARDUINO_ARCH_ESP32) #define RELAIS_COUNT 10 #define ESP_PLATFORM_NAME "ESP32" #endif #endif // __ESP_ENV_CONFIG__