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
@@ -69,6 +69,8 @@ boolean RF315toMQTT(){
|
||||
if (!isAduplicate(MQTTvalue) && MQTTvalue!=0) {// conditions to avoid duplications of RF -->MQTT
|
||||
trc(F("Adv data RF315toMQTT"));
|
||||
pub(subjectRF315toMQTT,RF315data);
|
||||
trc(F("Store to avoid duplicate"));
|
||||
storeValue(MQTTvalue);
|
||||
if (repeatRF315wMQTT){
|
||||
trc(F("Publish RF315 for repeat"));
|
||||
pub(subjectMQTTtoRF315,RF315data);
|
||||
|
||||
Reference in new issue
Block a user