\ No newline at end of file
diff --git a/button-pressed.js b/button-pressed.js
index 5495b93..cf1a0dd 100644
--- a/button-pressed.js
+++ b/button-pressed.js
@@ -8,13 +8,16 @@ module.exports = function(RED) {
var node = this;
var mac = config.mac || '';
+ // if there are mutliple addresses we split the chain
+ mac = mac.split(',');
+ var interface = config.interface || null;
console.log(mac);
- var dash = dash_button(mac);
- var found = function () {
- console.log('Button Pressed: ' + mac);
- var msg = {};
+ var dash = dash_button(mac, interface);
+ var found = function (dash_id) {
+ console.log('Button Pressed: ' + dash_id);
+ var msg = {"mac": dash_id};
node.send(msg);
};