-
Couldn't load subscription status.
- Fork 1
hugobenichi/rs232
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
RS232
Ruby interface to Windows Serial Port API
author hugo benichi
email hugo[dot]benichi[at]m4x[dot]org
copyright 2012 hugo benichi
version 0.1.3
Installation:
To compile the gem, produce a .gem package and install it automatically, run
from the root directory:
$ rake gem_install
Usage:
cf test/test_rs232.rb
first, require the gem with
require 'rs232'
then create an RS232 instance, passing an address and optional conf params
serial_port = RS232.new 'COM1'
the default parameters are
baud rate: 9600
8 bits
1 bit stop bit
no parity bit
control flow hardware (RTS/CTS)
delimiters ""
you can use RS232 instances with 'write', 'read' and 'query' commands
About
Ruby interface to Win32 RS232 API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published