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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user