diff --git a/User_config.h b/User_config.h index 04da5b9..01416a5 100644 --- a/User_config.h +++ b/User_config.h @@ -116,5 +116,8 @@ const byte subnet[] = { 255, 255, 255, 0 }; //ip adress #define subjectMQTTtoX "home/commands/#" #define subjectMultiGTWKey "toMQTT" +//variables to avoid duplicates +#define time_avoid_duplicate 3000 // if you want to avoid duplicate mqtt message received set this to > 0, the value is the time in milliseconds during which we don't publish duplicates + /*-------------------ACTIVATE TRACES----------------------*/ #define TRACE 1 // 0= trace off 1 = trace on diff --git a/config_RF.h b/config_RF.h index b1cc476..e6822a9 100644 --- a/config_RF.h +++ b/config_RF.h @@ -50,9 +50,6 @@ RF supported protocols //RF number of signal repetition #define RF_EMITTER_REPEAT 20 -//variables to avoid duplicates for RF -#define time_avoid_duplicate 3000 // if you want to avoid duplicate mqtt message received set this to > 0, the value is the time in milliseconds during which we don't publish duplicates - /*-------------------RF2 topics & parameters----------------------*/ //433Mhz newremoteswitch MQTT Subjects and keys #define subjectMQTTtoRF2 "home/commands/MQTTtoRF2"