0.01
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
EventMachine functionality for rubyserial gem that functions under a wide assortment of rubies
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 3

Runtime

 Project Readme

DEPRECATED - Em::Rubyserial

Deprecating this project because I have not maintained it in a long time, and do not have the time or need to do so any longer.

EventMachine serial port functionality that should work on all* ruby flavors (including MRI, jruby; and various operating systems including linux, windows, and apple)

(* for some values of all)

No Maintenance Intended

Build Status

Uses the following gem for serial port connectivity: https://github.com/hybridgroup/rubyserial

Essentially copies this gem: https://github.com/railsbob/em-serialport

but replaces the serialport gem with the rubyserial gem, and does some file descriptor handling.

There is currently as of this writing no license on the em-serialport gem, so hopefully this amount of attribution is satisfactory.

CHANGELOG

Installation

Add this line to your application's Gemfile:

gem 'em-rubyserial'

And then execute:

$ bundle

Or install it yourself as:

$ gem install em-rubyserial

Usage

EM.run do
  serial = EventMachine.open_serial('/dev/ttyS2', 9600, 8)
  serial.send_data "foo"

  serial.on_data do |data|
    puts data
  end
end

Contributing

  1. Fork it ( https://github.com/jcantara/em-rubyserial/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request