set the config adc time between read to 100 minimum so as to let space for mqtt

#129
This commit is contained in:
1technophile
2017-10-06 11:59:13 +02:00
parent 0d8f211a09
commit a65e2bccef

View File

@@ -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----------------------*/