mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
c16541a039
commit
2832522cca
@ -3,8 +3,8 @@
|
||||
|
||||
#include <WiFiClientSecure.h>
|
||||
|
||||
//#define BMP280
|
||||
#define BME280
|
||||
#define BMP280
|
||||
//#define BME280
|
||||
|
||||
#ifdef BME280
|
||||
#include <Adafruit_BME280.h>
|
||||
@ -78,6 +78,16 @@ void setup() {
|
||||
else {
|
||||
sensors_values.pressure = bmp.readPressure() / 100.0F;
|
||||
sensors_values.temperature = bmp.readTemperature();
|
||||
Serial.println("All values were measured.");
|
||||
Serial.print("Temperature: ");
|
||||
Serial.print(sensors_values.temperature);
|
||||
Serial.println();
|
||||
Serial.print("Pressure: ");
|
||||
Serial.print(sensors_values.pressure);
|
||||
Serial.println();
|
||||
Serial.print("Humidity: ");
|
||||
Serial.print(sensors_values.humidity);
|
||||
Serial.println();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user