Class: Smartware::CCNETConnection

Inherits:
CommandBasedDevice show all
Defined in:
lib/smartware/drivers/common/ccnet_connection.rb

Constant Summary collapse

POLYNOMIAL =
0x8408

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommandBasedDevice

#command, #receive_data

Constructor Details

#initializeCCNETConnection

Returns a new instance of CCNETConnection.



10
11
12
13
14
15
# File 'lib/smartware/drivers/common/ccnet_connection.rb', line 10

def initialize
  super

  @address = 0
  @command_timer = nil
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



8
9
10
# File 'lib/smartware/drivers/common/ccnet_connection.rb', line 8

def address
  @address
end