Method: Moob::Pec#power_control
- Defined in:
- lib/moob/pec.rb
#power_control(action) ⇒ Object
91 92 93 94 95 |
# File 'lib/moob/pec.rb', line 91 def power_control action req = @session.post "data?set=pwState:#{action}", {} raise ResponseError.new req unless req.status == 200 return nil end |