Skip to content

Commit 54af296

Browse files
committed
Support in and out in the same entry
1 parent a011a40 commit 54af296

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MqttEntry.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class MqttEntry {
4848
for (int i = 0; i < length; i++) {
4949
_payload += (char)payload[i];
5050
}
51-
update(_payload);
51+
if(!isIn() || _payload != lastValue) {
52+
update(_payload);
53+
}
5254
}
5355
}
5456

0 commit comments

Comments
 (0)