Class: Smartware::Interface::Watchdog

Inherits:
Smartware::Interface show all
Defined in:
lib/smartware/interfaces/watchdog.rb

Constant Summary collapse

WATCHDOG_NOT_AVAILBLE =
1

Instance Method Summary collapse

Constructor Details

#initialize(config, service) ⇒ Watchdog

Returns a new instance of Watchdog.



7
8
9
10
11
12
13
# File 'lib/smartware/interfaces/watchdog.rb', line 7

def initialize(config, service)
  super

  update_status :error, nil
  update_status :model, @device.model
  update_status :version, @device.version
end

Instance Method Details

#reboot_modemObject



15
16
17
18
19
# File 'lib/smartware/interfaces/watchdog.rb', line 15

def reboot_modem
  @device.reboot_modem

  update_status :error, @device.error
end