Skip to content

Commit

Permalink
fix: replace read_only with writable
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Dec 7, 2020
1 parent 4076085 commit b9a6315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ function onValueChanged (valueId, node, changed) {
data = { time: Date.now(), value: tmpVal }
}

if (!valueId.read_only && !this.topicValues[topic]) {
// valueId is writable, subscribe for updates
if (valueId.writable && !this.topicValues[topic]) {
const levels = topic.split('/').length

if (this.topicLevels.indexOf(levels) < 0) {
Expand Down

0 comments on commit b9a6315

Please sign in to comment.