1 2 Previous Next 23 Replies Latest reply on Dec 11, 2014 3:56 AM by arfoll

    mraa: Illegal arguments for construction of _exports_Gpio

    CasperSL

      Hi guys,

       

      I have a question about mraa and nodejs.

       

      I once tried to use intel XDK upload some nodejs scripts, which use mraa, onto my edison board.

      All of them worked. The code filere were automatically uploaded onto /node_app_slot

       

      Now i'm trying to test some new code directly on edison side,

      I've created a new folder and few new js files.

       

      Whenever I run the code with "node xx.js", there will be an error as something similar to this:

       

      var led = new mraa.Gpio(13);

                ^

      Error: Illegal arguments for construction of _exports_Gpio

          at Object.<anonymous> (/home/root/plant-s/p-3.js:4:11)

          at Module._compile (module.js:456:26)

          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 Function.Module.runMain (module.js:497:10)

          at startup (node.js:119:16)

          at node.js:906:3


      So I wonder is there anything else I need to set up before I can run my own code,

      rather than upload the code from intel xdk to edison everytime?


      Thanks!

      -Casper

        1 2 Previous Next