Class: SGS::Report
- Inherits:
-
Object
- Object
- SGS::Report
- Defined in:
- lib/sgs/report.rb
Class Method Summary collapse
-
.daemon ⇒ Object
Main daemon function (called from executable).
Class Method Details
.daemon ⇒ Object
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 |