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

Commit

Permalink
App fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Berg committed Mar 12, 2019
1 parent 3000c3f commit c7b375d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var application = new IoTApp(credentials.org, credentials.apiKey, credentials.ap
/* Application is an event emitter, so we listen for the payload event we defined in application.js! */
application.on('payload', function(data) {
/* We then broadcast to our clients. */
ws.emit('broadcast', JSON.parse(data).number);
ws.emit('broadcast', JSON.parse(data).temp);
});

/* Start server on the specified port and binding host app_env.port */
Expand Down

0 comments on commit c7b375d

Please sign in to comment.