paint-brush
Read Arduino Serial Monitor Using NodeJSby@madhavbahl10
28,398 reads
28,398 reads

Read Arduino Serial Monitor Using NodeJS

by Madhav Bahl4mMarch 27th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

So, there was a project I was working on where I had to fetch the data from serial monitor in my node console and then using web sockets display the data in a web based application. But, I was having a hard time figuring out how to fetch the data, I explored and found <a href="https://www.npmjs.com/package/serialport" target="_blank">serialport</a> npm module, but the output it gave was in form of buffer, not the exact word I wanted.&nbsp;<br>After spending some time, I was able to figure out how to do it. Hence, I am sharing this so that it can help anyone who is trying to do the same.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Read Arduino Serial Monitor Using NodeJS
Madhav Bahl HackerNoon profile picture
Madhav Bahl

Madhav Bahl

@madhavbahl10

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite