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
@@ -26,9 +26,9 @@
/*----------------------------USER PARAMETERS-----------------------------*/
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
#define subjectVolttoMQTT "home/INA226toMQTT/Volt"
#define subjectCurrenttoMQTT "home/INA226toMQTT/Current"
#define subjectPowertoMQTT "home/INA226toMQTT/Power"
#define subjectVolttoMQTT Base_Topic Gateway_Name "/INA226toMQTT/Volt"
#define subjectCurrenttoMQTT Base_Topic Gateway_Name "/INA226toMQTT/Current"
#define subjectPowertoMQTT Base_Topic Gateway_Name "/INA226toMQTT/Power"
#define TimeBetweenReadingINA226 30000 // time between 2 INA226 readings