Value of _RLValue - Added getRL and setRL method

This commit is contained in:
miguel califa 2019-09-28 11:05:55 -05:00
parent a14b14c449
commit 0f912a3c4a
2 changed files with 10 additions and 0 deletions

View File

@ -562,6 +562,14 @@ void MQUnifiedsensor::setR0(double R0) {
double MQUnifiedsensor::getR0() {
return _R0;
}
void MQUnifiedsensor::setRL(double RL) {
this->_RLValue = RL;
}
double MQUnifiedsensor::getRL() {
return _RLValue;
}
void MQUnifiedsensor::setDefaultGas()
{
if(_type == 2)

View File

@ -255,6 +255,7 @@ class MQUnifiedsensor
void inicializar();
void update();
void setR0(double R0 = 10);
void setRL(double RL = 10);
void setVoltResolution(float voltaje = 5);
void setSensorCharacteristics(String nameLectureReqeuired = "", bool print = false);
void setDefaultGas();
@ -265,6 +266,7 @@ class MQUnifiedsensor
//get function for info
double getR0();
double getRL();
double getVoltage(int read = true);
double stringToDouble(String & str);
String getnameLecture();