Class: SGS::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/sgs/report.rb

Class Method Summary collapse

Class Method Details

.daemonObject

Main daemon function (called from executable)



44
45
46
47
48
49
50
51
52
# File 'lib/sgs/report.rb', line 44

def self.daemon
  puts "Reporting subsystem starting up. Version #{SGS::VERSION}"
  config = Config.load
  sp = SerialPort.new config.comm_device, config.comm_speed
  sp.read_timeout = 10000
  loop do
    sleep 300
  end
end