javascript - Error: ESPIPE, write -
im using following code write file
fs.writefile('/dev/ttymxc1',"led 1 on",function(err){ if (err) return console.log(err); });
and error
{ [error: espipe, write] errno: -29, code: 'espipe' }
i googled found nothing..
edit:
i think reason not work have use
fs.createwritestream();
instead of
fs.filewrite();
the solution using
fs.createwritestream()
instead of
fs.filewrite();
Comments
Post a Comment