Skip to content

Commit f94c15c

Browse files
author
娃娃脾气
authored
Merge pull request #7 from jupazave/hash-topic-subscription
Hash topic subscription
2 parents ab27147 + ebd2147 commit f94c15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-MQTT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ angular.module('ngMQTT', [])
4141
});
4242
if(topic.match(regexpStr)){
4343
$rootScope.$apply(function() {
44-
callback(data);
44+
callback(data, topic);
4545
});
4646
}
4747
})

0 commit comments

Comments
 (0)