mio-serial icon indicating copy to clipboard operation
mio-serial copied to clipboard

Better examples

Open spacekookie opened this issue 7 years ago • 8 comments

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:)

spacekookie avatar May 03 '18 17:05 spacekookie

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.

berkowski avatar May 05 '18 19:05 berkowski

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! ⛵️

mtn avatar May 05 '18 20:05 mtn

@berkowski Smooth sailing! :ocean::boat:

spacekookie avatar May 05 '18 22:05 spacekookie

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 avatar Oct 11 '18 20:10 juanctorresm

@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.

berkowski avatar Oct 11 '18 20:10 berkowski

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

juanctorresm avatar Oct 11 '18 20:10 juanctorresm

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.

berkowski avatar Oct 11 '18 20:10 berkowski

Thank you very much! You were very helpful!

juanctorresm avatar Oct 11 '18 20:10 juanctorresm