Using this exact code for my nodeJS file on my Intel Edison referenced from http://cylonjs.com/documentation/drivers/maxbotix/
The only difference is in the line edison: { adaptor: 'intel-iot' }
var Cylon = require('cylon');
Cylon.robot({
connections: {
edison: { adaptor: 'intel-iot' }
},
devices: {
maxbotix: { driver: 'maxbotix' }
},
work: function(my) {
every((1).seconds(), function() {
my.maxbotix.range(function(data) {
console.log("range: " + data);
});
});
}
}).start();
I've done a npm install so all my modules are installed and doublechecked my wiring to ensure my sensor is connected properly.
Whenever I run the app I get the error
Error: No pin specified for Maxbotix. Cannot proceed
Any arduino, nodejs or cyclonjs experts able to suggest what is missing or wrong?