# Values to be set by wireless scans
self.scanlist = {}
- self.tstamp = 0
self.nscan = 0
self.nfp = 0
# BUG : if scan is called after stop (maybe in other cases), 'ERROR' is returned and split raises exception
self.nscan +=1
self.scanlist.clear()
- self.tstamp = time.time()
for net in scan_out.split() :
self.nfp += 1
items = net.rsplit(":", 1)
except Exception , ex :
osso.SystemNote(self.osso_context).system_note_infoprint("Exception scanning %s" % ex )
+ def __str__ ( self ) :
+ output = map( lambda x : "%s %s" % x , self.scanlist.iteritems() )
+ return " ".join( output )
+
def report ( self ) :
return "%d scan\t%d fp" % ( self.nscan , self.nfp )
def show_scan(sample):
gobject.timeout_add( 5000 , show_scan , sample )
print "scan results : %s" % sample.report()
- print " tstamp %s" % sample.tstamp
c = 0
for k,v in sample.scanlist.iteritems() :
c += 1