Method: OpenC3::SerialStream#read
- Defined in:
- lib/openc3/streams/serial_stream.rb
#read ⇒ String
Returns a binary string of data from the serial port
120 121 122 123 124 125 |
# File 'lib/openc3/streams/serial_stream.rb', line 120 def read raise "Attempt to read from write only stream" unless @read_serial_port # No read mutex is needed because reads happen serially @read_serial_port.read end |