class XBee::Config::XBeeUARTConfig
A class for encapsulating UART communication parameters
Attributes
baud[RW]
data_bits[RW]
parity[RW]
stop_bits[RW]
Public Class Methods
new(baud = 9600, data_bits = 8, parity = 0, stop_bits = 1)
click to toggle source
Defaults to standard 9600 baud 8N1 communications
# File lib/ruxbee/config.rb, line 12 def initialize(baud = 9600, data_bits = 8, parity = 0, stop_bits = 1) self.baud = Integer(baud) self.data_bits = Integer(data_bits) self.parity = Integer(parity) self.stop_bits = Integer(stop_bits) end