Set security value appropriate in WPA3/WPA2 mode
[platform/upstream/connman.git] / test / set-global-timeservers
1 #!/usr/bin/python
2
3 import sys
4 import dbus
5
6 if (len(sys.argv) < 1):
7         print("Usage: %s [timeserver*]" % (sys.argv[0]))
8         sys.exit(1)
9
10 bus = dbus.SystemBus()
11
12 clock = dbus.Interface(bus.get_object('net.connman', '/'),
13                                         'net.connman.Clock')
14
15 print("Setting timeserver to %s" % (sys.argv[1:]))
16
17 clock.SetProperty("Timeservers", dbus.Array(sys.argv[1:],
18                                         signature=dbus.Signature('s')))