diff --git a/examples/arduinos_and_skynet/multiple_arduinos_multiple_skynet_connections.js b/examples/arduinos_and_skynet/multiple_arduinos_multiple_skynet_connections.js index 0298348..02154c5 100644 --- a/examples/arduinos_and_skynet/multiple_arduinos_multiple_skynet_connections.js +++ b/examples/arduinos_and_skynet/multiple_arduinos_multiple_skynet_connections.js @@ -38,7 +38,7 @@ SkynetBot = (function(){ } }); - Logger.info("Skynet instance `" + my.name + "` is listening ..."); + console.log("Skynet instance `" + my.name + "` is listening ..."); }; return SkynetBot; diff --git a/examples/arduinos_and_skynet/multiple_arduinos_one_skynet_connection.js b/examples/arduinos_and_skynet/multiple_arduinos_one_skynet_connection.js index df6d12a..3eb90d2 100644 --- a/examples/arduinos_and_skynet/multiple_arduinos_one_skynet_connection.js +++ b/examples/arduinos_and_skynet/multiple_arduinos_one_skynet_connection.js @@ -22,7 +22,7 @@ skynet = { ], work: function(my) { - Logger.info("Skynet is listening..."); + console.log("Skynet is listening..."); my.skynet.on('message', function(data) { console.log(data); diff --git a/examples/hello/hello.js b/examples/hello/hello.js index 310d0e4..8c99651 100644 --- a/examples/hello/hello.js +++ b/examples/hello/hello.js @@ -1,8 +1,18 @@ var Cylon = require('../..'); Cylon.robot({ + connection: { name: 'loopback', adaptor: 'loopback' }, + device: { name: 'ping', driver: 'ping' }, + + commands: ['test'], + + test: function(greeting) { + return greeting + " world"; + }, + work: function() { - every(1..second(), function() { console.log("Hello, human!"); }); - after(10..seconds(), function() { console.log("Impressive."); }); + every((60).seconds(), console.log); } -}).start(); +}); + +Cylon.start(); diff --git a/examples/skynet/skynet-blink.js b/examples/skynet/skynet-blink.js index ca82d81..89ab014 100644 --- a/examples/skynet/skynet-blink.js +++ b/examples/skynet/skynet-blink.js @@ -10,10 +10,10 @@ Cylon.robot({ device: { name: 'led13', driver: 'led', pin: 13, connection: 'arduino' }, work: function(my) { - Logger.info("Skynet is listening..."); + console.log("Skynet is listening..."); my.skynet.on('message', function(data) { - Logger.info(data); + console.log(data); var data = JSON.parse(data); if(data.message.red == 'on') { my.led13.turnOn() diff --git a/examples/skynet/skynet-blink.markdown b/examples/skynet/skynet-blink.markdown index 1adf39d..eb36817 100644 --- a/examples/skynet/skynet-blink.markdown +++ b/examples/skynet/skynet-blink.markdown @@ -30,10 +30,10 @@ Now that Cylon knows about the necessary hardware we're going to be using, we'll tell it what work we want to do: work: function(my) { - Logger.info("Skynet is listening..."); + console.log("Skynet is listening..."); my.skynet.on('message', function(data) { - Logger.info(data); + console.log(data); var data = JSON.parse(data); if(data.message.red == 'on') { my.led13.turnOn()