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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -