Skip to content

Commit 81eb196

Browse files
committed
feature: set the topic of the message to the signalk path
1 parent 3bb22ef commit 81eb196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signalk-flatten-delta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function(RED) {
1313
pathValue.$source = update.$source
1414
pathValue.source = update.source
1515
pathValue.context = delta.context
16-
node.send({ payload: pathValue})
16+
node.send({ payload: pathValue, topic: pathValue.path})
1717
})
1818
}
1919
})

0 commit comments

Comments
 (0)