Sha256: 7b7aa8eeee2fb9a579d2f1a8bb824798d980418db3f22a142b17dc1c09a192f1
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
# Rs232 Native implementation of the Rs-232 conneciton type ## Installation Add this line to your application's Gemfile: gem 'ruby-rs-232' And then execute: $ bundle Or install it yourself as: $ gem install ruby-rs-232 ## Usage ```ruby require "rs_232" class Serial attr_reader :interface include CommPort # == constructor with default params # by default port will be configured with: # # @baud_rate = 115200 # BAUD_115200 # @data_bits = 8 # DATA_BITS_8 # @parity = 0 # PAR_NONE # @stop_bits = 1 # STOP_1 # @flow_control = 0 # FLOW_OFF # # def initialize(port) @interface ||= Rs232.new(port) end # # other adapter methods here ... # # adapter example placed in the lib folder # end #== Windows @adapter = Serial.new("COM3") #== Linux @adapter = Serial.new("/dev/tty.usb00000") #== Darwin @adapter = Serial.new("/dev/ttyACM0") ``` ## Contributing
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rs_232-2.0.5 | README.md |
rs_232-2.0.4 | README.md |