Hi
I've been using Luvit for quite some time and it's a great fit for my project. Sadly though, there's no serial port library available at the moment. Since I really need the serial port, I was hoping you guys could give me a few pointers.
I've come across a thread from 2016 about serial support (
https://groups.google.com/d/msg/luvit/m_bJes9J2p0/u2hi21_4CQAJ), but I was unable to run the posted gists. Someone apparently did get the serial port working, but didn't open-source it. The guy said they used "a mixture of Luvit, C and FFI. FFI for read and write, C for line monitoring threads and Luvit (uv.poll for events on the port)", which already gives a basic idea.
I'm quite comfortable working with Luvit by now, but I lack knowledge to write a library myself using libuv and FFI. How would I go about this? Should I read up on libuv and FFI and try to hack something together? What are some good resources to get started? I'm eager to learn, but I simply wouldn't know where to start on this one.
Thanks in advance!
Kind regards,
Bram