RemoteDroid:查询电池状态等
require 'remotedroid'
r = RemoteDroid::Client.new
# toggle the torch
r.invoke :torch
# retrieve the current location of the device
location = r.query :location
#=> {:coords=>"55.9192166,-3.246983", :latency=>1.496}
# play
Ruby-MacroDroid:使用RemoteDroid :: Control
用法
require 'ruby-macrodroid'
rdc = RemoteDroid::Control.new(deviceid: '28fbcc0d-2c66-1d3e-ae4c-53bd75db3ace')
rdc.export 'ftp://user:secretphone.home:2221/Downloads/m3009.mdr'
# before running the next command