From 6d11ce020a956a15f1ec5e2ca9d57b36f5d8bb23 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 21 Sep 2016 16:30:13 -0500 Subject: [PATCH] test: Add wps-push-button script --- test/wps-push-button | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/wps-push-button diff --git a/test/wps-push-button b/test/wps-push-button new file mode 100755 index 00000000..04aad1e4 --- /dev/null +++ b/test/wps-push-button @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +import sys +import dbus + +if (len(sys.argv) != 2): + print("Usage: %s " % (sys.argv[0])) + sys.exit(1) + +bus = dbus.SystemBus() +wsc = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]), + "net.connman.iwd.WiFiSimpleConfiguration") +wsc.PushButton()