GrowNode
gn_ds18b20.h File Reference

Macros

#define GN_DS18B20_MAX_SENSORS   4
 

Functions

gn_leaf_descriptor_handle_t gn_ds18b20_config (gn_leaf_handle_t leaf_config)
 

Variables

static const char GN_LEAF_DS18B20_TYPE [] = "ds18b20"
 
static const int32_t MIN_UPDATE_TIME_SEC = 3
 
static const int32_t MAX_UPDATE_TIME_SEC = 3600
 
static const char GN_DS18B20_PARAM_ACTIVE [] = "active"
 
static const char GN_DS18B20_PARAM_UPDATE_TIME_SEC [16] = "upd_time_sec"
 
static const char GN_DS18B20_PARAM_GPIO [5] = "gpio"
 
static const char GN_DS18B20_PARAM_SENSOR_NAMES [GN_DS18B20_MAX_SENSORS][6]
 

Macro Definition Documentation

◆ GN_DS18B20_MAX_SENSORS

#define GN_DS18B20_MAX_SENSORS   4

Function Documentation

◆ gn_ds18b20_config()

gn_leaf_descriptor_handle_t gn_ds18b20_config ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_DS18B20_PARAM_ACTIVE

const char GN_DS18B20_PARAM_ACTIVE[] = "active"
static

whether the sensor is running

◆ GN_DS18B20_PARAM_GPIO

const char GN_DS18B20_PARAM_GPIO[5] = "gpio"
static

GPIO connected to the temp sensor

◆ GN_DS18B20_PARAM_SENSOR_NAMES

const char GN_DS18B20_PARAM_SENSOR_NAMES[GN_DS18B20_MAX_SENSORS][6]
static
Initial value:
= { "temp1", "temp2",
"temp3", "temp4" }

◆ GN_DS18B20_PARAM_UPDATE_TIME_SEC

const char GN_DS18B20_PARAM_UPDATE_TIME_SEC[16] = "upd_time_sec"
static

seconds between sensor sampling

◆ GN_LEAF_DS18B20_TYPE

const char GN_LEAF_DS18B20_TYPE[] = "ds18b20"
static

◆ MAX_UPDATE_TIME_SEC

const int32_t MAX_UPDATE_TIME_SEC = 3600
static

◆ MIN_UPDATE_TIME_SEC

const int32_t MIN_UPDATE_TIME_SEC = 3
static