eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

wps-push-button (318B)


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