Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from sauloal/patch-1
Browse files Browse the repository at this point in the history
device stats not working with HTTP
  • Loading branch information
dbaba committed Apr 6, 2018
2 parents e70998f + ff2ebde commit 25c70ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/device-stats.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default function(RED) {
if (this.useString || opts && opts.useString) {
stats = JSON.stringify(stats);
}
this.send({ payload: stats });
msg.payload = stats;
this.send(msg);
this.timeout = setTimeout(() => {
if (this.timeout) {
this.status({});
Expand Down

0 comments on commit 25c70ac

Please sign in to comment.