You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 usefullgetc
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.
The text was updated successfully, but these errors were encountered: