Data Gator
Hardware and software documentation for the Data Gator project.
Loading...
Searching...
No Matches
VWCSensor.hpp
Go to the documentation of this file.
1
14
#ifndef VWC_SENSOR_H
15
#define VWC_SENSOR_H
16
17
23
class
VWCSensor
{
24
25
public
:
35
enum
SoilMedia
{
36
MINERAL_SOIL
,
37
SOILLESS
38
};
39
50
virtual
double
getVWC
(
SoilMedia
media
,
double
voltage
);
51
57
virtual
std::string
getSensorType
();
58
67
virtual
std::string
toJSON
(
double
voltage
);
68
69
};
70
71
#endif
VWCSensor
Interface for converting a voltage measurement from an analog sensor into a double,...
Definition
VWCSensor.hpp:23
VWCSensor::toJSON
virtual std::string toJSON(double voltage)
Convert data to JSON key value pairs.
VWCSensor::getSensorType
virtual std::string getSensorType()
Return brand+sensor model string for topic.
VWCSensor::getVWC
virtual double getVWC(SoilMedia media, double voltage)
Convert raw data to volume water/volume soil percentage.
VWCSensor::SoilMedia
SoilMedia
Defines types of soil for which the volumetric water content calculation needs to be adjusted.
Definition
VWCSensor.hpp:35
VWCSensor::SOILLESS
@ SOILLESS
Fake soil, potting soil for example.
Definition
VWCSensor.hpp:37
VWCSensor::MINERAL_SOIL
@ MINERAL_SOIL
Mineral-based soil. Dirt!
Definition
VWCSensor.hpp:36
reset_count
int reset_count
number of resets retrieved for NVS
Definition
scheduler.hpp:31
include
VWCSensor.hpp
Generated by
1.10.0