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

Documentation Request SerialPort.available() #38

Open
einspunktnull opened this issue Jul 1, 2013 · 2 comments
Open

Documentation Request SerialPort.available() #38

einspunktnull opened this issue Jul 1, 2013 · 2 comments

Comments

@einspunktnull
Copy link

Hi, i was looking for a method equivalent to Arduino's Serial.available(), which returns the amount of bytes received / readable, if there's nothing it returns -1.
First, I've looked in the docs, but couldn't find sth. similar. Than i've done a puts Serialport.instance_methods. This gave me a huge amount of methods like the usefull getc which I've not seen in the docs, but I also need. Finally I'm confused how to get full Information about API of SerialPort.
When I looked in the Source I couldn't find the getc too. Excuse me Im a ruby-noob, so maybe I've gone the false way.

@ghost
Copy link

ghost commented Oct 9, 2013

it inherits from the IO class, so you should also look there for methods.

@ghost
Copy link

ghost commented Nov 6, 2013

the documentation is now available online here: http://rubydoc.info/gems/serialport/SerialPort

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

1 participant