Last active
August 29, 2015 14:01
-
-
Save zankich/23938b9ea58ab926b934 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Cylon = require('cylon'); | |
| Cylon.api({host: '10.22.25.22', port: '8080', ssl: false}); | |
| Cylon.robot({ | |
| name: 'pebble', | |
| connection: { name: 'pebble', adaptor: 'pebble' }, | |
| device: { name: 'pebble', driver: 'pebble' }, | |
| work: function(my) { | |
| var i = 0; | |
| every((1).second(), function(){ | |
| my.pebble.message_queue().push(i++); | |
| console.log(i); | |
| }); | |
| } | |
| }); | |
| Cylon.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment