Method: Argus::ATCommander#initialize

Defined in:
lib/argus/at_commander.rb

#initialize(sender) ⇒ ATCommander

Returns a new instance of ATCommander.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/argus/at_commander.rb', line 7

def initialize(sender)
  @sender = sender
  @seq = 0
  @ref_data = "0"
  @pcmd_data = "0,0,0,0,0"
  @buffer = ""
  @thread = nil
  @interval = 0.020
  @mutex = Mutex.new
  @timestamps = []
end