GrowNode
gn_watering_control.h File Reference

Functions

gn_leaf_descriptor_handle_t gn_watering_control_config (gn_leaf_handle_t leaf_config)
 

Variables

static const int32_t MIN_WATERING_INTERVAL = 10
 
static const int32_t MAX_WATERING_INTERVAL = 60*60*24*30
 
static const int32_t MIN_WATERING_TIME = 1
 
static const int32_t MAX_WATERING_TIME = 60*60
 
static const int32_t MIN_WATERING_TARGET_TEMP = 12
 
static const int32_t MAX_WATERING_TARGET_TEMP = 30
 
static const int32_t MAX_HCC_CYCLE_TIME_SEC = 60 * 5
 
static const char GN_LEAF_WATERING_CONTROL_TYPE [] = "watering_control"
 
static const char GN_WAT_CTR_PARAM_WATERING_INTERVAL_SEC [] = "wat_int_sec"
 
static const char GN_WAT_CTR_PARAM_WATERING_TIME_SEC [] = "wat_time_sec"
 
static const char GN_WAT_CTR_PARAM_WATERING_TARGET_TEMP [] = "wat_t_temp"
 
static const char GN_WAT_CTR_PARAM_ACTIVE [] = "active"
 
static const int32_t GN_WAT_CTR_CYCLE_TIME_MS = 1000L
 

Function Documentation

◆ gn_watering_control_config()

gn_leaf_descriptor_handle_t gn_watering_control_config ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_LEAF_WATERING_CONTROL_TYPE

const char GN_LEAF_WATERING_CONTROL_TYPE[] = "watering_control"
static

◆ GN_WAT_CTR_CYCLE_TIME_MS

const int32_t GN_WAT_CTR_CYCLE_TIME_MS = 1000L
static

◆ GN_WAT_CTR_PARAM_ACTIVE

const char GN_WAT_CTR_PARAM_ACTIVE[] = "active"
static

◆ GN_WAT_CTR_PARAM_WATERING_INTERVAL_SEC

const char GN_WAT_CTR_PARAM_WATERING_INTERVAL_SEC[] = "wat_int_sec"
static

◆ GN_WAT_CTR_PARAM_WATERING_TARGET_TEMP

const char GN_WAT_CTR_PARAM_WATERING_TARGET_TEMP[] = "wat_t_temp"
static

◆ GN_WAT_CTR_PARAM_WATERING_TIME_SEC

const char GN_WAT_CTR_PARAM_WATERING_TIME_SEC[] = "wat_time_sec"
static

◆ MAX_HCC_CYCLE_TIME_SEC

const int32_t MAX_HCC_CYCLE_TIME_SEC = 60 * 5
static

◆ MAX_WATERING_INTERVAL

const int32_t MAX_WATERING_INTERVAL = 60*60*24*30
static

◆ MAX_WATERING_TARGET_TEMP

const int32_t MAX_WATERING_TARGET_TEMP = 30
static

◆ MAX_WATERING_TIME

const int32_t MAX_WATERING_TIME = 60*60
static

◆ MIN_WATERING_INTERVAL

const int32_t MIN_WATERING_INTERVAL = 10
static

◆ MIN_WATERING_TARGET_TEMP

const int32_t MIN_WATERING_TARGET_TEMP = 12
static

◆ MIN_WATERING_TIME

const int32_t MIN_WATERING_TIME = 1
static