Remove spam from pulse sensors when gateway is unable to receive request for meter value.
This commit is contained in:
@@ -83,6 +83,7 @@ void loop()
|
||||
} else if (sendTime && !pcReceived) {
|
||||
// No count received. Try requesting it again
|
||||
gw.request(CHILD_ID, V_VAR1);
|
||||
lastSend=now;
|
||||
}
|
||||
|
||||
if (SLEEP_MODE) {
|
||||
|
||||
@@ -97,9 +97,10 @@ void loop()
|
||||
}
|
||||
}
|
||||
lastSend = currentTime;
|
||||
} else if (sendTime) {
|
||||
} else if (sendTime && !pcReceived) {
|
||||
// No count received. Try requesting it again
|
||||
gw.request(CHILD_ID, V_VAR1);
|
||||
lastSend=currentTime;
|
||||
}
|
||||
|
||||
if (SLEEP_MODE) {
|
||||
|
||||
Reference in New Issue
Block a user