Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better examples #8

Open
spacekookie opened this issue May 3, 2018 · 8 comments
Open

Better examples #8

spacekookie opened this issue May 3, 2018 · 8 comments

Comments

@spacekookie
Copy link

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 😕 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 😜)

@berkowski berkowski reopened this May 5, 2018
@berkowski
Copy link
Owner

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.

@mtn
Copy link

mtn commented May 5, 2018

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

@spacekookie
Copy link
Author

@berkowski Smooth sailing! 🌊⛵

@juanctorresm
Copy link

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

@berkowski
Copy link
Owner

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

@juanctorresm
Copy link

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

@berkowski
Copy link
Owner

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.

@juanctorresm
Copy link

Thank you very much! You were very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants