![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Interface for pH sensors. More...
#include <pHSensor.hpp>
Public Member Functions | |
virtual double | getpH (double voltage) |
Convert voltage reading to pH value. | |
virtual std::string | getSensorType () |
Get the sensor type as a string, used for constructing MQTT topics. | |
virtual std::string | toJSON (double voltage) |
Converts a voltage to a JSON object string for MQTT messages. | |
Interface for pH sensors.
Defines functional interface for reading from and converting values from pH sensors.
Convert voltage reading to pH value.
Reimplemented in AtlasGravitypH, GenericPH, and AtlasEZOpH.
|
virtual |
Get the sensor type as a string, used for constructing MQTT topics.
Reimplemented in AtlasGravitypH, GenericPH, and AtlasEZOpH.
Converts a voltage to a JSON object string for MQTT messages.
Reimplemented in AtlasEZOpH, AtlasGravitypH, and GenericPH.