From a65e2bcceff91b46f612ff89b3b617a20436d963 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Fri, 6 Oct 2017 11:59:13 +0200 Subject: [PATCH] set the config adc time between read to 100 minimum so as to let space for mqtt #129 --- config_ADC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_ADC.h b/config_ADC.h index 00c9f9e4..d165d598 100644 --- a/config_ADC.h +++ b/config_ADC.h @@ -27,7 +27,7 @@ /*----------------------------USER PARAMETERS-----------------------------*/ /*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/ #define ADC "home/ADCtoMQTT" -#define TimeBetweenReadingADC 0 // time between 2 ADC readings, can be 0 if you want only the threshold to trigger sending +#define TimeBetweenReadingADC 100 // time between 2 ADC readings, minimum 100 to let the time of the ESP to keep the connection #define ThresholdReadingADC 50 // following the comparison between the previous value and the current one +- the threshold the value will be published or not /*-------------------PIN DEFINITIONS----------------------*/