Last active
August 29, 2015 14:06
-
-
Save hlxwell/55cdcbf37981e608f9fc to your computer and use it in GitHub Desktop.
wifi testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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