Skip to content

Instantly share code, notes, and snippets.

@hlxwell
Last active August 29, 2015 14:06
Show Gist options
  • Save hlxwell/55cdcbf37981e608f9fc to your computer and use it in GitHub Desktop.
Save hlxwell/55cdcbf37981e608f9fc to your computer and use it in GitHub Desktop.
wifi testing
prev_time = Time.now
100000.times do
request = WifiRequest.where(client_mac_addr: "B0:8E:1A:50:03:ED").last
next if request.request_at == prev_time
puts request.slice(:client_mac_addr, :power, :request_at)
prev_time = request.request_at
sleep 5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment