mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-03-15 05:17:30 +03:00
Value of _RLValue - Added getRL and setRL method
This commit is contained in:
parent
a14b14c449
commit
0f912a3c4a
@ -562,6 +562,14 @@ void MQUnifiedsensor::setR0(double R0) {
|
|||||||
double MQUnifiedsensor::getR0() {
|
double MQUnifiedsensor::getR0() {
|
||||||
return _R0;
|
return _R0;
|
||||||
}
|
}
|
||||||
|
void MQUnifiedsensor::setRL(double RL) {
|
||||||
|
this->_RLValue = RL;
|
||||||
|
}
|
||||||
|
|
||||||
|
double MQUnifiedsensor::getRL() {
|
||||||
|
return _RLValue;
|
||||||
|
}
|
||||||
|
|
||||||
void MQUnifiedsensor::setDefaultGas()
|
void MQUnifiedsensor::setDefaultGas()
|
||||||
{
|
{
|
||||||
if(_type == 2)
|
if(_type == 2)
|
||||||
|
@ -255,6 +255,7 @@ class MQUnifiedsensor
|
|||||||
void inicializar();
|
void inicializar();
|
||||||
void update();
|
void update();
|
||||||
void setR0(double R0 = 10);
|
void setR0(double R0 = 10);
|
||||||
|
void setRL(double RL = 10);
|
||||||
void setVoltResolution(float voltaje = 5);
|
void setVoltResolution(float voltaje = 5);
|
||||||
void setSensorCharacteristics(String nameLectureReqeuired = "", bool print = false);
|
void setSensorCharacteristics(String nameLectureReqeuired = "", bool print = false);
|
||||||
void setDefaultGas();
|
void setDefaultGas();
|
||||||
@ -265,6 +266,7 @@ class MQUnifiedsensor
|
|||||||
|
|
||||||
//get function for info
|
//get function for info
|
||||||
double getR0();
|
double getR0();
|
||||||
|
double getRL();
|
||||||
double getVoltage(int read = true);
|
double getVoltage(int read = true);
|
||||||
double stringToDouble(String & str);
|
double stringToDouble(String & str);
|
||||||
String getnameLecture();
|
String getnameLecture();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user