Skip to content

Commit

Permalink
Update mqtt.class.php
Browse files Browse the repository at this point in the history
ONLY_NEW_VALUE setting usage for writing into the topic
  • Loading branch information
sergejey committed Mar 27, 2024
1 parent 62806d9 commit a09d3d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mqtt/mqtt.class.php
Expand Up @@ -311,6 +311,10 @@ function setProperty($id, $value, $set_linked = 0)
return 0;
}

if ($rec['ONLY_NEW_VALUE'] && $rec['VALUE'] == $value) {
return 0;
}


if ($rec['REPLACE_LIST'] != '') {
$list = explode(',', $rec['REPLACE_LIST']);
Expand Down

0 comments on commit a09d3d9

Please sign in to comment.