Skip to content

Instantly share code, notes, and snippets.

@zankich
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save zankich/23938b9ea58ab926b934 to your computer and use it in GitHub Desktop.

Select an option

Save zankich/23938b9ea58ab926b934 to your computer and use it in GitHub Desktop.
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