Sha256: 74f7dbcce30d897c6cac05150df2f9e50e21db81f814675f8c23d8a333eb6b27

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

# rubyserial

A simple ruby gem which allows you to read and write from a serial port.

Usage:
```ruby
require 'rubyserial'
s = Serial.new("/dev/ttyACM0", 57600)
```

#####write(string) -> int
```
  returns the number of bytes written.
  RubySerial::Exception on error.
```
######read(length) -> string
```
 returns a string up to "length".   
 read is not guarenteed to return the entire "length" specified.
 returns "" on no data
 RubySerial::Exception on error.
```

######RubySerial::Exception
```
  returns the underlying system error code
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyserial-0.0.1 README.md