We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2419af5 commit 81eb168Copy full SHA for 81eb168
signalk-send-pathvalue.js
@@ -13,13 +13,13 @@ module.exports = function(RED) {
13
}
14
15
node.on('input', msg => {
16
- if ( !msg.topic ) {
17
- node.error('no topic for incomming message')
+ let path = config.path ? config.path : msg.topic
+
18
+ if ( !path ) {
19
+ node.error('no topic or path configured')
20
return
21
22
- let path = config.path ? config.path : msg.topic
-
23
if ( typeof config.meta !== 'undefined' && config.meta !== "" && !sentMeta[path] ) {
24
let delta = {
25
updates: [
0 commit comments