GrowNode
gn_bme280.h File Reference

Functions

gn_leaf_descriptor_handle_t gn_bme280_config (gn_leaf_handle_t leaf_config)
 configures the leaf More...
 

Variables

static const char GN_LEAF_BME280_TYPE [] = "bme280"
 
static const char GN_BME280_PARAM_ACTIVE [] = "active"
 whether the sensor is running More...
 
static const char GN_BME280_PARAM_SDA [] = "SDA"
 gpio number for I2C master clock More...
 
static const char GN_BME280_PARAM_SCL [] = "SCL"
 gpio number for I2C master data More...
 
static const char GN_BME280_PARAM_UPDATE_TIME_SEC [] = "upd_time_sec"
 seconds between sensor sampling More...
 
static const char GN_BME280_PARAM_TEMP [] = "temp"
 temperature recorded More...
 
static const char GN_BME280_PARAM_HUM [] = "hum"
 humidity recorded More...
 
static const char GN_BME280_PARAM_PRESS [] = "press"
 pressure recorded More...
 

Function Documentation

◆ gn_bme280_config()

gn_leaf_descriptor_handle_t gn_bme280_config ( gn_leaf_handle_t  leaf_config)

configures the leaf

Variable Documentation

◆ GN_BME280_PARAM_ACTIVE

const char GN_BME280_PARAM_ACTIVE[] = "active"
static

whether the sensor is running

Name Type Access Storage Default Description
GN_BME280_PARAM_ACTIVE GN_VAL_TYPE_BOOLEAN GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_PERSISTED true whether the sensor is running

◆ GN_BME280_PARAM_HUM

const char GN_BME280_PARAM_HUM[] = "hum"
static

humidity recorded

Name Type Access Storage Default Description
GN_BME280_PARAM_HUM GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_VOLATILE 0 humidity recorded

◆ GN_BME280_PARAM_PRESS

const char GN_BME280_PARAM_PRESS[] = "press"
static

pressure recorded

Name Type Access Storage Default Description
GN_BME280_PARAM_PRESS GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_VOLATILE 0 pressure recorded

◆ GN_BME280_PARAM_SCL

const char GN_BME280_PARAM_SCL[] = "SCL"
static

gpio number for I2C master data

Name Type Access Storage Default Description
GN_BME280_PARAM_SCL GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_PERSISTED 22 gpio number for I2C master data

◆ GN_BME280_PARAM_SDA

const char GN_BME280_PARAM_SDA[] = "SDA"
static

gpio number for I2C master clock

Name Type Access Storage Default Description
GN_BME280_PARAM_SDA GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_PERSISTED 21 gpio number for I2C master clock

◆ GN_BME280_PARAM_TEMP

const char GN_BME280_PARAM_TEMP[] = "temp"
static

temperature recorded

Name Type Access Storage Default Description
GN_BME280_PARAM_TEMP GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_VOLATILE 0 temperature recorded

◆ GN_BME280_PARAM_UPDATE_TIME_SEC

const char GN_BME280_PARAM_UPDATE_TIME_SEC[] = "upd_time_sec"
static

seconds between sensor sampling

Name Type Access Storage Default Description
GN_BME280_PARAM_UPDATE_TIME_SEC GN_VAL_TYPE_DOUBLE GN_LEAF_PARAM_ACCESS_NETWORK GN_LEAF_PARAM_STORAGE_PERSISTED 120 seconds between sensor sampling

◆ GN_LEAF_BME280_TYPE

const char GN_LEAF_BME280_TYPE[] = "bme280"
static