working frontend and backend
This commit is contained in:
@@ -30,5 +30,5 @@ BME280Data_t BME280_Read()
|
||||
BME280::TempUnit tUnit(BME280::TempUnit_Celsius);
|
||||
BME280::PresUnit pUnit(BME280::PresUnit_Pa);
|
||||
bme.read(p, t, h, tUnit, pUnit);
|
||||
return {p, t, h};
|
||||
return {p/100, t, h};
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ void printAllData()
|
||||
Serial.println(DEVICE_ID, HEX);
|
||||
|
||||
Serial.print("Presión: ");
|
||||
Serial.print(bme280Data.pressure / 100);
|
||||
Serial.print(bme280Data.pressure);
|
||||
Serial.println(" hPa");
|
||||
Serial.print("Temperatura: ");
|
||||
Serial.print(bme280Data.temperature);
|
||||
|
||||
Reference in New Issue
Block a user