Getting started with the serial port (in Electron)

390 views
Skip to first unread message

Ian

unread,
Sep 16, 2016, 4:53:55 PM9/16/16
to Elm Discuss
Hi. I'm looking to build a custom serial port terminal program. It'll receive a binary format that needs to be made human readable (and plotted). 

It would be awesome if I could write my app in Electron, using Elm. 

Besides giving me a framework (so I can avoid React and Angular), it seems Elm can also help me decode the protocol in a uniquely concise way. 

First things first: how do I access the node serial port (https://www.npmjs.com/package/serialport) in Elm? 

Looking forward to get started in Elm!

Ian



PS In the days before Elm 0.17 was released I could sense an excitement in the air (and I had no clues about what was to happen, no contact). In contrast with this excitement I have the feeling the 0.17 release may be seen by the public as a step back: in the eyes of the feeble Elm became a framework instead of a language. In other words Elm became less powerful and a special purpose tool. I hope to prove myself wrong :)




Some links that might be useful:

- github.com/rwaldron/johnny-five is an Arduino based Robotics platform


- This may be an even better resource: http://www.gizra.com/content/elm-electron-build/  


Finally, this page has some code showing the kind of serial port code needed:




Duane Johnson

unread,
Sep 16, 2016, 5:26:08 PM9/16/16
to elm-d...@googlegroups.com

Ian, FYI new members to this mailing list have to have their first message approved by a moderator due to an excess of unsavory spam. I saw that you send 3 or 4 similar messages. I approved the first one and removed the others. You should be able to post future messages without a moderation step here on out.


--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages