Storevalue after pub to avoid duplicates publishing in slow environment
This commit is contained in:
1 parent
68352f10e6
commit
27fa38ec45
4 files changed
+8
No files matched your search
@@ -146,6 +146,8 @@ void IRtoMQTT(){
|
||||
} else if (!isAduplicate(MQTTvalue) && MQTTvalue!=0) {// conditions to avoid duplications of RF -->MQTT
|
||||
trc(F("Adv data IRtoMQTT"));
|
||||
pub(subjectIRtoMQTT,IRdata);
|
||||
trc(F("Store to avoid duplicate"));
|
||||
storeValue(MQTTvalue);
|
||||
if (repeatIRwMQTT){
|
||||
trc(F("Pub. IR for repeat"));
|
||||
pub(subjectMQTTtoIR,MQTTvalue);
|
||||
|
||||
Reference in new issue
Block a user