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

+3 -3
View File
@@ -41,9 +41,9 @@
/*----------------------------USER PARAMETERS-----------------------------*/
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
#define LUX "home/LIGHTtoMQTT/lux"
#define FTCD "home/LIGHTtoMQTT/ftcd"
#define WATTSM2 "home/LIGHTtoMQTT/wattsm2"
#define LUX Base_Topic Gateway_Name "/LIGHTtoMQTT/lux"
#define FTCD Base_Topic Gateway_Name "/LIGHTtoMQTT/ftcd"
#define WATTSM2 Base_Topic Gateway_Name "/LIGHTtoMQTT/wattsm2"
//Time used to wait for an interval before resending measured values
unsigned long timebh1750 = 0;