Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions signalk-send-pathvalue.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ module.exports = function(RED) {
}

node.on('input', msg => {
if ( !msg.topic ) {
node.error('no topic for incomming message')
let path = config.path ? config.path : msg.topic

if ( !path ) {
node.error('no topic or path configured')
return
}

let path = config.path ? config.path : msg.topic

if ( typeof config.meta !== 'undefined' && config.meta !== "" && !sentMeta[path] ) {
let delta = {
updates: [
Expand Down