Closed OrlandoMoDo closed 1 year ago
I tried to read the sensor gorve multichannel v2 and don't appear any of the data.
I put the code in a esp32 and works, but i put in the htcc-ab02 and dont read the data.
This is the code that I used:
GAS_GMXXX gas;
void setup() { Serial.begin(9600); gas.begin(Wire, 0x08); }
void loop() { uint8_t len = 0; uint8_t addr = 0; uint8_t i; uint32_t val = 0;
val = gas.measure_NO2(); Serial.print("NO2: "); Serial.print(val); Serial.print(" = "); Serial.print(gas.calcVol(val)); Serial.println("V"); val = gas.measure_C2H5OH(); Serial.print("C2H5OH: "); Serial.print(val); Serial.print(" = "); Serial.print(gas.calcVol(val)); Serial.println("V"); val = gas.measure_VOC(); Serial.print("VOC: "); Serial.print(val); Serial.print(" = "); Serial.print(gas.calcVol(val)); Serial.println("V"); val = gas.measure_CO(); Serial.print("CO: "); Serial.print(val); Serial.print(" = "); Serial.print(gas.calcVol(val)); Serial.println("V"); delay(2000);
}
ya lo pude solucionar, solo habia que reducir el request en la libreria
I tried to read the sensor gorve multichannel v2 and don't appear any of the data.
I put the code in a esp32 and works, but i put in the htcc-ab02 and dont read the data.
This is the code that I used:
include
include
GAS_GMXXX gas;
void setup() { Serial.begin(9600); gas.begin(Wire, 0x08); }
void loop() { uint8_t len = 0; uint8_t addr = 0; uint8_t i; uint32_t val = 0;
}