Feature/add shtc3 (#843)

* Add SHTC3

* remove adc config
This commit is contained in:
白月秋见心 authored and GitHub committed 2021-01-05 19:17:39 -06:00
1 parent 1c18e83c98
commit d84f64b23f
5 files changed
+139

No files matched your search

+9
View File
@@ -111,6 +111,9 @@ JsonArray& modules = modulesBuffer.createArray();
#ifdef ZsensorDHT
# include "config_DHT.h"
#endif
#ifdef ZsensorSHTC3
# include "config_SHTC3.h"
#endif
#ifdef ZsensorDS1820
# include "config_DS1820.h"
#endif
@@ -715,6 +718,9 @@ void setup() {
#endif
#ifdef ZmqttDiscovery
modules.add(ZmqttDiscovery);
#endif
#ifdef ZsensorSHTC3
setupSHTC3();
#endif
Log.trace(F("mqtt_max_packet_size: %d" CR), mqtt_max_packet_size);
Log.notice(F("Setup OpenMQTTGateway end" CR));
@@ -1273,6 +1279,9 @@ void loop() {
#ifdef ZsensorDHT
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
#endif
#ifdef ZsensorSHTC3
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
#endif
#ifdef ZsensorDS1820
MeasureDS1820Temp(); //Addon to measure the temperature with DS1820 sensor(s)
#endif