mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 02:47:16 +00:00
temp sensor
This commit is contained in:
@@ -15,6 +15,8 @@ framework = arduino
|
||||
monitor_speed = 115200
|
||||
lib_deps =
|
||||
knolleary/PubSubClient@^2.8
|
||||
adafruit/Adafruit BME280 Library@^2.2.2
|
||||
adafruit/Adafruit BMP280 Library@^2.6.6
|
||||
|
||||
[platformio]
|
||||
description = ESP32 Sensors node
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// Uncomment modules as required
|
||||
//#define RTC
|
||||
//#define MICRO_SD
|
||||
//#define BMP280 // Adafruit BMP280; temp & pressure
|
||||
#define BMP280 // Adafruit BMP280; temp & pressure
|
||||
//#define BME280 // Generic BME280; temp, pressure & humidity
|
||||
//#define AWSIoT
|
||||
|
||||
|
@@ -17,6 +17,13 @@
|
||||
#include "secrets.h"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef BME280
|
||||
#include <Adafruit_BME280.h>
|
||||
#endif
|
||||
#ifdef BMP280
|
||||
#include <Adafruit_BMP280.h>
|
||||
#endif
|
||||
|
||||
struct {
|
||||
float humidity = 0.0;
|
||||
float pressure = 0.0;
|
||||
|
Reference in New Issue
Block a user