scan-for-networks (307B)
1 #!/usr/bin/python3 2 3 import sys 4 import dbus 5 6 7 if (len(sys.argv) != 2): 8 print("Usage: %s <device>" % (sys.argv[0])) 9 sys.exit(1) 10 11 bus = dbus.SystemBus() 12 device = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]), 13 "net.connman.iwd.Station") 14 device.Scan()