Open spacekookie opened 6 years ago
Sorry, I did not mean to close this issue. I'm currently at sea with very limited bandwidth (both time and internet). I'll check back in mid-may once back on shore.
Thanks for responding -- I'd deleted my question once I figured it out. I'll be using this library though, and as a relative beginner I'm happy to help out if you want.
Enjoy your time (semi?) off the grid! ⛵️
@berkowski Smooth sailing! :ocean::boat:
Hello, I'm trying to use mio-serial but I've been having many errors every time I run the code. Would you be able to give a description of some of the main commands? such as 'use'.I have never seen it before. I apologize if this is a dumb request as I just starting with C language
@juanctorresm This is a library for the rust language, not C. If you are looking to use rust with serialports, a good place to start is serialport-rs which offers an easier blocking method of accessing serial ports.
If you're just starting out using C and you want to use a serialport it will depend on whether you're using Windows or some *nix flavor (linux/BSD/OSX).
For linux there is http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/, I don't have much experience with windows serial port programming myself.
Thank you for the fast response! Oh! I thought this was a library for C, rookie mistake. I'm actually trying to look for a cross-platform library that can be used in both Windows and MAC. Is it possible that you have any idea if that exists? I haven't been able to find it. Thank you very much! I honestly appreciate it a lot
A cross-platform C library for serial ports might be tough to find. GTK might have something... I know it's written in C and can work on both Windows an Linux, but I have no idea if it exposes serial ports.
If you're willing to work in C++ you could use the Boost library framework.
Thank you very much! You were very helpful!
I've been thinking about using
mio-serial
in a project but I'm a bit confused about the scope of this crate and how to properly used it.Generally it looks a bit awkward to use :confused: so maybe that could be improved.
(Although I would be wondering if you're interested in talking about API design and the scope of what the library should do :stuck_out_tongue_winking_eye:)