put home as a #define and add gateway name to all topics

#160
This commit is contained in:
Florian committed 2018-04-04 23:57:18 +02:00
1 parent c68714a434
commit a7d61f0590
13 files changed
+52 -51

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@
/*----------------------------USER PARAMETERS-----------------------------*/
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
#define ADC "home/ADCtoMQTT"
#define ADC Base_Topic Gateway_Name "/ADCtoMQTT"
#define TimeBetweenReadingADC 200 // time between 2 ADC readings, minimum 200 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