Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 408 Bytes
require "rmodbus"
describe ModBus::RTUViaTCPServer do
it "should have options :host" do
host = '192.168.0.1'
srv = ModBus::RTUViaTCPServer.new(1010, 1, :host => '192.168.0.1')
srv.host.should eql(host)
end
it "should have options :max_connection" do
max_conn = 5
srv = ModBus::RTUViaTCPServer.new(1010, 1, :max_connection => 5)
srv.maxConnections.should eql(max_conn)
end
end
Jump to Line
Something went wrong with that request. Please try again.