Files
IoTManager/include/Consts.h

50 lines
835 B
C
Raw Normal View History

2020-06-19 01:50:19 +03:00
#pragma once
/*
2020-06-21 03:43:15 +03:00
* Main consts
2020-06-19 01:50:19 +03:00
*/
2020-06-21 03:43:15 +03:00
#define FIRMWARE_VERSION "2.3.4"
2020-06-20 14:27:58 +03:00
#define NUM_BUTTONS 6
2020-06-21 03:43:15 +03:00
#define LED_PIN 2
#define FLASH_4MB true
#define MQTT_RECONNECT_INTERVAL 20000
// 1000 * 60 * 60 * 2
#define TELEMETRY_UPDATE_INTERVAL 0
2020-06-25 09:21:42 +03:00
2020-06-25 05:09:11 +03:00
#define DEVICE_CONFIG_FILE "dev_conf.txt"
#define DEVICE_SCENARIO_FILE "dev_scen.txt"
#define DEFAULT_PRESET 100
#define DEFAULT_SCENARIO 100
2020-06-17 23:30:48 +03:00
2020-06-20 14:27:58 +03:00
/*
* Optional
*/
2020-06-21 03:43:15 +03:00
//#define OTA_UPDATES_ENABLED
//#define MDNS_ENABLED
//#define WEBSOCKET_ENABLED
//#define LAYOUT_IN_RAM
#define UDP_ENABLED
2020-06-19 01:50:19 +03:00
/*
* Sensor
*/
2020-06-21 03:43:15 +03:00
#define TANK_LEVEL_SAMPLES 10
#define LEVEL_ENABLED
#define ANALOG_ENABLED
#define DALLAS_ENABLED
#define DHT_ENABLED
#define BMP_ENABLED
#define BME_ENABLED
2020-06-19 01:50:19 +03:00
/*
* Gears
*/
2020-06-21 03:43:15 +03:00
#define STEPPER_ENABLED
#define SERVO_ENABLED
2020-06-19 01:50:19 +03:00
/*
* Other
*/
2020-06-21 03:43:15 +03:00
#define LOGGING_ENABLED
#define SERIAL_ENABLED
#define PUSH_ENABLED