commclient/test_wireless.py

13 lines
225 B
Python
Raw Permalink Normal View History

2016-08-14 06:11:30 +00:00
#!/usr/bin/python2
import wireless
import time
wf = wireless.wireless("wlan0")
while(True):
print "level: " + wf.level() + " dBm"
print "link: " + wf.link() + " dBm"
print "noise: " + wf.noise() + " dBm"
time.sleep(1)