Data Gator
Hardware and software documentation for the Data Gator project.
Loading...
Searching...
No Matches
pHSensor.hpp
Go to the documentation of this file.
1
10#ifndef PHSENSOR_H
11#define PHSENSOR_H
12
19class pHSensor {
20 public:
26 virtual double getpH(double voltage);
27
33 virtual std::string getSensorType();
34
40 virtual std::string toJSON(double voltage);
41};
42
43#endif
Interface for pH sensors.
Definition pHSensor.hpp:19
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.