Skip to content

Commit

Permalink
+ Get sonoff state on microgear connected.
Browse files Browse the repository at this point in the history
  • Loading branch information
boyzfunhouse committed Feb 17, 2017
1 parent 9804261 commit 843aa9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ angular.module('app.controllers', [])
microgear.setAlias('Sonoff01HTML5'); /* alias can be renamed anytime with this function */
microgear.subscribe("/Sonoff01/state");
console.log("Micogear connected.");
microgear.chat("Sonoff01","?");
});

microgear.on("closed", function() {
Expand Down

0 comments on commit 843aa9c

Please sign in to comment.