Module: Pinoccio::Commands
Instance Method Summary collapse
- #boot ⇒ Object
- #daisy! ⇒ Object
- #events ⇒ Object
- #functions ⇒ Object
- #lead? ⇒ Boolean
- #led ⇒ Object
- #mesh ⇒ Object
- #pin ⇒ Object
- #power ⇒ Object
- #random_number ⇒ Object
- #report ⇒ Object
- #temperature ⇒ Object
- #uptime ⇒ Object
- #wifi ⇒ Object
Instance Method Details
#boot ⇒ Object
16 17 18 |
# File 'lib/commands.rb', line 16 def boot execute("scout.boot") end |
#daisy! ⇒ Object
11 12 13 14 |
# File 'lib/commands.rb', line 11 def daisy! execute("scout.daisy") execute("scout.daisy") end |
#events ⇒ Object
52 53 54 |
# File 'lib/commands.rb', line 52 def events EventsCommands.new(self) end |
#functions ⇒ Object
56 57 58 |
# File 'lib/commands.rb', line 56 def functions FunctionCommands.new(self) end |
#lead? ⇒ Boolean
3 4 5 |
# File 'lib/commands.rb', line 3 def lead? @is_lead ||= get("scout.isleadscout", :boolean) end |
#led ⇒ Object
36 37 38 |
# File 'lib/commands.rb', line 36 def led LedCommands.new(self) end |
#mesh ⇒ Object
44 45 46 |
# File 'lib/commands.rb', line 44 def mesh MeshCommands.new(self) end |
#pin ⇒ Object
48 49 50 |
# File 'lib/commands.rb', line 48 def pin PinCommands.new(self) end |
#power ⇒ Object
32 33 34 |
# File 'lib/commands.rb', line 32 def power PowerCommands.new(self) end |
#random_number ⇒ Object
24 25 26 |
# File 'lib/commands.rb', line 24 def random_number get("randomnumber", :integer) end |
#report ⇒ Object
7 8 9 |
# File 'lib/commands.rb', line 7 def report get("scout.report", :json) end |
#temperature ⇒ Object
20 21 22 |
# File 'lib/commands.rb', line 20 def temperature get("temperature", :integer) end |
#uptime ⇒ Object
28 29 30 |
# File 'lib/commands.rb', line 28 def uptime get("uptime", :integer) end |
#wifi ⇒ Object
40 41 42 |
# File 'lib/commands.rb', line 40 def wifi WifiCommands.new(self) end |