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