Enable the BME280 options to be settable using PlatformIO build flags, add and organize documentation (#942)
* Allow BME280 options to be build flaggable * Update and clarify documentation for configurations and builds
This commit is contained in:
1 parent
2744510822
commit
1de93d3f1d
6 files changed
+281
-180
No files matched your search
+10
-4
@@ -41,15 +41,21 @@
|
||||
extern void setupBME280();
|
||||
extern void BME280toMQTT();
|
||||
|
||||
#define bme280_always true // if false when the current value of the parameter is the same as previous one don't send it by MQTT
|
||||
#define TimeBetweenReadingbme280 30000
|
||||
#ifndef bme280_always
|
||||
# define bme280_always true // if false when the current value of the parameter is the same as previous one don't send it by MQTT
|
||||
#endif
|
||||
#ifndef TimeBetweenReadingbme280
|
||||
# define TimeBetweenReadingbme280 30000
|
||||
#endif
|
||||
|
||||
/*----------------------------USER PARAMETERS-----------------------------*/
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
#define BMETOPIC "/CLIMAtoMQTT/bme"
|
||||
#ifndef BMETOPIC
|
||||
# define BMETOPIC "/CLIMAtoMQTT/bme"
|
||||
#endif
|
||||
|
||||
//Time used to wait for an interval before resending measured values
|
||||
unsigned long timebme280 = 0;
|
||||
int BME280_i2c_addr = 0x76; // Bosch BME280 I2C Address
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user