mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 22:24:26 +00:00
Update main.cpp
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#include <WiFiClientSecure.h>
|
#include <WiFiClientSecure.h>
|
||||||
|
|
||||||
#define BMP280
|
#define BMP280
|
||||||
|
//#define BME280
|
||||||
|
|
||||||
#ifdef BME280
|
#ifdef BME280
|
||||||
#include <Adafruit_BME280.h>
|
#include <Adafruit_BME280.h>
|
||||||
@@ -48,7 +49,7 @@ void setup() {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef BMP280
|
#ifdef BMP280
|
||||||
Adafruit_BMP280 bmp;
|
Adafruit_BMP280 bmp;
|
||||||
unsigned status = bmp.begin(0x58);
|
unsigned status = bmp.begin();
|
||||||
if (!status) {
|
if (!status) {
|
||||||
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
|
Serial.println("Could not find a valid BME/BMP280 sensor, check wiring!");
|
||||||
Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(), 16);
|
Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(), 16);
|
||||||
|
Reference in New Issue
Block a user