Storevalue after pub to avoid duplicates publishing in slow environment

This commit is contained in:
Florian committed 2019-01-17 22:55:08 +01:00
1 parent 68352f10e6
commit 27fa38ec45
4 files changed
+8

No files matched your search

+2
View File
@@ -71,6 +71,8 @@ void RFtoMQTT(){
RFtoMQTTdiscovery(MQTTvalue);
#endif
pub(subjectRFtoMQTT,RFdata);
trc(F("Store to avoid duplicate"));
storeValue(MQTTvalue);
if (repeatRFwMQTT){
trc(F("Pub RF for rpt"));
pub(subjectMQTTtoRF,RFdata);