3 Replies Latest reply on Sep 19, 2014 5:27 PM by Intel_Alvarado

    transmitting data from sketch to node.js on Galileo board

    LEEYS

      I am trying to using serial port to connect arduino sketch and node.js on Galileo board.
      (to transmit data from sketch to node.js)

      When I ran server.js, the following error appeared.

      --------------------------------------------------------------------------------------------
      module.js:340
          throw err;
                ^
      Error: Cannot find module '/home/public_html/node_modules/serialport/build/serialport/v1.4.6/Release/node-v11-linux-ia32/serialport.node'
          at Function.Module._resolveFilename (module.js:338:15)
          at Function.Module._load (module.js:280:25)
          at Module.require (module.js:364:17)
          at require (module.js:380:17)
          at Object.<anonymous> (/home/public_html/node_modules/serialport/serialport.js:14:25)
          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 Module.require (module.js:364:17)
      --------------------------------------------------------------------------------------------

      Would anybody know reason of this error?

      And, is there another way to connect arduino sketch and node.js?