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

+2 -2
View File
@@ -26,8 +26,8 @@
/*----------------------------USER PARAMETERS-----------------------------*/
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
#define HUM1 "home/DHTtoMQTT/dht1/hum"
#define TEMP1 "home/DHTtoMQTT/dht1/temp"
#define HUM1 Base_Topic Gateway_Name "/DHTtoMQTT/dht1/hum"
#define TEMP1 Base_Topic Gateway_Name "/DHTtoMQTT/dht1/temp"
#define dht_always true // if false when the current value for temp or hum is the same as previous one don't send it by MQTT
#define TimeBetweenReadingDHT 30000 // time between 2 DHT readings
/*-------------DHT SENSOR TYPE-------------*/