File transfer to USB port

47 views
Skip to first unread message

aby peter

unread,
Mar 13, 2017, 11:30:32 AM3/13/17
to nodejs
Hi All,

I would like to transfer one file from  " Raspberry Pi " environment to  USB port of one generator. How can i achieve this requirement using Node.JS.

Can i use  node-red module? Anyone have any idea, Please help me

Thanks,
Aby

Murukesh Sadasivan

unread,
Mar 14, 2017, 1:36:02 PM3/14/17
to nodejs
You need to be more specific. What is a generator? Are you wanting to transfer to a USB attached disk drive?

If the USB device is mounted as a file system, you can simply copy it using plain node.js. You need to use fs-extra module to transfer file across devices. Check the documentation to find samples on how to copy files. 
Reply all
Reply to author
Forward
0 new messages