GrowNode
gn_capacitive_moisture_sensor.h File Reference

Functions

gn_leaf_descriptor_handle_t gn_capacitive_moisture_sensor_config (gn_leaf_handle_t leaf_config)
 

Variables

static const char GN_LEAF_CMS_TYPE [] = "cms"
 
static const char GN_CMS_PARAM_ACTIVE [] = "active"
 
static const char GN_CMS_PARAM_ADC_CHANNEL [] = "touch_ch"
 
static const char GN_CMS_PARAM_MAX_LEVEL [] = "max_level"
 
static const char GN_CMS_PARAM_MIN_LEVEL [] = "min_level"
 
static const char GN_CMS_PARAM_ACT_LEVEL [] = "act_level"
 
static const char GN_CMS_PARAM_TRG_HIGH [] = "trg_hig"
 
static const char GN_CMS_PARAM_TRG_LOW [] = "trg_low"
 
static const char GN_CMS_PARAM_UPDATE_TIME_SEC [] = "upd_time_sec"
 

Function Documentation

◆ gn_capacitive_moisture_sensor_config()

gn_leaf_descriptor_handle_t gn_capacitive_moisture_sensor_config ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_CMS_PARAM_ACT_LEVEL

const char GN_CMS_PARAM_ACT_LEVEL[] = "act_level"
static

actual water level. volatile, read only

◆ GN_CMS_PARAM_ACTIVE

const char GN_CMS_PARAM_ACTIVE[] = "active"
static

whether the sensor is running

◆ GN_CMS_PARAM_ADC_CHANNEL

const char GN_CMS_PARAM_ADC_CHANNEL[] = "touch_ch"
static

touch channel for sensing. stored, read/write

◆ GN_CMS_PARAM_MAX_LEVEL

const char GN_CMS_PARAM_MAX_LEVEL[] = "max_level"
static

minimum water level. stored, read/write

◆ GN_CMS_PARAM_MIN_LEVEL

const char GN_CMS_PARAM_MIN_LEVEL[] = "min_level"
static

maximum water level. stored, read/write

◆ GN_CMS_PARAM_TRG_HIGH

const char GN_CMS_PARAM_TRG_HIGH[] = "trg_hig"
static

water level above max level = 1. volatile, read only

◆ GN_CMS_PARAM_TRG_LOW

const char GN_CMS_PARAM_TRG_LOW[] = "trg_low"
static

water level below min level = 1. volatile, read only

◆ GN_CMS_PARAM_UPDATE_TIME_SEC

const char GN_CMS_PARAM_UPDATE_TIME_SEC[] = "upd_time_sec"
static

seconds between sensor sampling. stored, read/write

◆ GN_LEAF_CMS_TYPE

const char GN_LEAF_CMS_TYPE[] = "cms"
static