From a654b662e607fb886ad193b1cb955d3b89406351 Mon Sep 17 00:00:00 2001 From: c3ma Date: Fri, 16 Oct 2020 16:10:36 +0200 Subject: [PATCH] Settings moved into a seperate file --- esp32/include/HomieTypes.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 esp32/include/HomieTypes.h diff --git a/esp32/include/HomieTypes.h b/esp32/include/HomieTypes.h new file mode 100644 index 0000000..60f60bd --- /dev/null +++ b/esp32/include/HomieTypes.h @@ -0,0 +1,25 @@ +/** + * @file HomieTypes.h + * @author your name (you@domain.com) + * @brief + * @version 0.1 + * @date 2020-10-16 + * + * @copyright Copyright (c) 2020 + * All Settings, configurable in Homie + */ +#ifndef HOMIE_PLANT_CFG_CONFIG_H +#define HOMIE_PLANT_CFG_CONFIG_H + +#include + +typedef struct PlantSettings_t { + HomieSetting* pSensorDry; + HomieSetting* pSensorWet; + HomieSetting* pPumpAllowedHourRangeStart; + HomieSetting* pPumpAllowedHourRangeEnd; + HomieSetting* pPumpOnlyWhenLowLight; + HomieSetting* pPumpCooldownInHours; +} PlantSettings_t; + +#endif \ No newline at end of file