Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20984

transmitting data from sketch to node.js on Galileo board

$
0
0

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?


Viewing all articles
Browse latest Browse all 20984

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>