hybridgroup / cylon

JavaScript framework for robotics, drones, and the Internet of Things (IoT)
https://cylonjs.com
Other
4.2k stars 361 forks source link

Problem firmata node library in arduino yun #373

Open csotomon opened 6 years ago

csotomon commented 6 years ago

when a run the Testing Communication script (www-blink.js) i have this problem.

/mnt/sda1/arduino/www/node_modules/firmata/lib/firmata.js:4 const Emitter = require("events"); ^^^^^ SyntaxError: Use of const in strict mode. at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/mnt/sda1/arduino/www/index.js:1:77) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)

I think that the arduino yun openwrt node version doesn't support this firmata librery version (0.19.1)

do you have a solution for this?

or what firmata librery version works with the example?