class Geppeto::Commands::Temperature

Public Class Methods

new(scout) click to toggle source
# File lib/commands/temperature.rb, line 4
def initialize(scout)
  @scout = scout
end

Public Instance Methods

c() click to toggle source
# File lib/commands/temperature.rb, line 8
def c
  @scout.request("temperature.c")
end
calibrate(current_temp_c) click to toggle source
# File lib/commands/temperature.rb, line 24
def calibrate(current_temp_c)
  @scout.request("temperature.calibrate", current_temp_c)
end
f() click to toggle source
# File lib/commands/temperature.rb, line 12
def f
  @scout.request("temperature.f")
end
report() click to toggle source
# File lib/commands/temperature.rb, line 16
def report
  @scout.request("temperature.report")
end
setoffset(offset) click to toggle source
# File lib/commands/temperature.rb, line 20
def setoffset(offset)
  @scout.request("temperature.offset", offset)
end