Skip to content
Open
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
Support for / character in config.name
  • Loading branch information
scottt732 committed Oct 3, 2019
commit 3771fa90a5e1766244a36da34673d73231906741
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function start() {
} else if (!isNaN(payload)) {
payload = parseFloat(payload);
}
const [, method, type, name, datapoint] = topic.split('/');
const [, method, type, name, datapoint] = topic.substr(config.name.length).split('/');

switch (method) {
case 'set':
Expand Down