class Geppeto::Commands::Mesh
Public Class Methods
new(scout)
click to toggle source
# File lib/commands/mesh.rb, line 4 def initialize(scout) @scout = scout end
Public Instance Methods
config(scout_id, troop_id, channel=20)
click to toggle source
# File lib/commands/mesh.rb, line 8 def config(scout_id, troop_id, channel=20) @scout.request("mesh.config", scout_id, troop_id, channel) end
ingroup?(group)
click to toggle source
# File lib/commands/mesh.rb, line 36 def ingroup?(group) @scout.request("mesh.ingroup").to_i == 1 end
joingroup(group)
click to toggle source
# File lib/commands/mesh.rb, line 28 def joingroup(group) @scout.request("mesh.joingroup", group.to_i) end
leavegroup(group)
click to toggle source
# File lib/commands/mesh.rb, line 32 def leavegroup(group) @scout.request("mesh.leavegroup", group.to_i) end
report()
click to toggle source
# File lib/commands/mesh.rb, line 40 def report @scout.request("mesh.report") end
resetkey()
click to toggle source
# File lib/commands/mesh.rb, line 24 def resetkey @scout.request("mesh.resetkey") end
routing()
click to toggle source
# File lib/commands/mesh.rb, line 44 def routing @scout.request("mesh.routing") end
setdatarate(rate)
click to toggle source
# File lib/commands/mesh.rb, line 16 def setdatarate(rate) @scout.request("mesh.setdatarate", rate.to_i) end
setkey(key)
click to toggle source
# File lib/commands/mesh.rb, line 20 def setkey(key) @scout.request("mesh.setkey", key) end
setpowerlevel(level)
click to toggle source
# File lib/commands/mesh.rb, line 12 def setpowerlevel(level) @scout.request("mesh.setpowerlevel", level.to_i) end